Content deleted Content added
→Details: wrong airtag, wrong year |
No edit summary Tags: Reverted Mobile edit Mobile web edit |
||
Line 1:
আমি আপনার জন্য একটি প্রাথমিক অ্যাপের ফ্রেমওয়ার্ক (Flutter-ভিত্তিক) তৈরি করে দিচ্ছি, যা দিয়ে আপনি গেমের টপ-আপ, মোবাইল রিচার্জ, এবং অন্যান্য ফিচারগুলো সংযুক্ত করতে পারবেন।
Flutter App Initial Code
Flutter-এ একটি সিম্পল UI-সহ একটি অ্যাপের কাঠামো নিচে দেওয়া হলো:
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Top-Up App',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Top-Up & Recharge'),
),
body: ListView(
padding: EdgeInsets.all(16.0),
children: [
SizedBox(height: 20),
Text(
'Welcome to Top-Up Services',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
textAlign: TextAlign.center,
),
SizedBox(height: 20),
ServiceButton(
title: 'Free Fire Top-Up',
onPressed: () {
// Navigate to Free Fire Top-Up Page
},
),
ServiceButton(
title: 'PUBG Mobile Top-Up',
onPressed: () {
// Navigate to PUBG Top-Up Page
},
),
ServiceButton(
title: 'Mobile Recharge',
onPressed: () {
// Navigate to Mobile Recharge Page
},
),
ServiceButton(
title: 'Internet Packages',
onPressed: () {
// Navigate to Internet Packages Page
},
),
],
),
);
}
}
class ServiceButton extends StatelessWidget {
final String title;
final VoidCallback onPressed;
ServiceButton({required this.title, required this.onPressed});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 10.0),
child: ElevatedButton(
onPressed: onPressed,
child: Text(title, style: TextStyle(fontSize: 18)),
style: ElevatedButton.styleFrom(
padding: EdgeInsets.symmetric(vertical: 15),
primary: Colors.blue,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
),
),
);
}
}
---
==Details==
|