Created
March 5, 2025 14:18
-
-
Save up1/3a8907491e0fa853be00c443446c2161 to your computer and use it in GitHub Desktop.
Generated code from pixels2flutter.dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( | |
useMaterial3: true, | |
primaryColor: Color(0xFFB2D235), | |
), | |
home: HomePage(), | |
); | |
} | |
} | |
class HomePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
backgroundColor: Color(0xFFB2D235), | |
title: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Text( | |
'สวัสดียามดึก, 0863816736', | |
style: TextStyle( | |
color: Colors.black, | |
fontWeight: FontWeight.bold, | |
), | |
), | |
GestureDetector( | |
onTap: () {}, | |
child: Text( | |
'แก้ไขบัญชีของฉัน', | |
style: TextStyle( | |
color: Colors.black, | |
fontSize: 14, | |
), | |
), | |
), | |
], | |
), | |
), | |
body: ListView( | |
children: [ | |
Container( | |
color: Color(0xFFB2D235), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: [ | |
Column( | |
children: [ | |
Icon(Icons.local_shipping, color: Color(0xFFB2D235)), | |
Text('สถานะคำสั่งซื้อ'), | |
], | |
), | |
Column( | |
children: [ | |
Icon(Icons.history, color: Color(0xFFB2D235)), | |
Text('ประวัติคำสั่งซื้อ'), | |
], | |
), | |
], | |
), | |
), | |
Divider(), | |
ListTile( | |
leading: Icon(Icons.location_on, color: Color(0xFFB2D235)), | |
title: Text('ที่อยู่จัดส่ง'), | |
trailing: Icon(Icons.arrow_forward_ios), | |
), | |
ListTile( | |
leading: Icon(Icons.receipt, color: Color(0xFFB2D235)), | |
title: Text('ที่อยู่บนใบกำกับภาษี'), | |
trailing: Icon(Icons.arrow_forward_ios), | |
), | |
ListTile( | |
leading: Icon(Icons.credit_card, color: Color(0xFFB2D235)), | |
title: Text('บัตรเครดิต'), | |
trailing: Icon(Icons.arrow_forward_ios), | |
), | |
Divider(), | |
ListTile( | |
leading: Icon(Icons.settings, color: Color(0xFFB2D235)), | |
title: Text('ตั้งค่าการใช้งานแอป'), | |
trailing: Icon(Icons.arrow_forward_ios), | |
), | |
ListTile( | |
leading: Icon(Icons.lock, color: Color(0xFFB2D235)), | |
title: Text('เปลี่ยนรหัสผ่าน'), | |
trailing: Icon(Icons.arrow_forward_ios), | |
), | |
Divider(), | |
ListTile( | |
leading: Icon(Icons.chat, color: Color(0xFFB2D235)), | |
title: Text('เกี่ยวกับบิ๊กซี'), | |
trailing: Icon(Icons.arrow_forward_ios), | |
), | |
ListTile( | |
leading: Icon(Icons.shopping_cart, color: Color(0xFFB2D235)), | |
title: Text('บิ๊กซีออนไลน์'), | |
trailing: Icon(Icons.arrow_forward_ios), | |
), | |
], | |
), | |
bottomNavigationBar: BottomNavigationBar( | |
selectedItemColor: Color(0xFFB2D235), | |
unselectedItemColor: Colors.black, | |
currentIndex: 4, | |
items: [ | |
BottomNavigationBarItem( | |
icon: Icon(Icons.home), | |
label: 'หน้าหลัก', | |
), | |
BottomNavigationBarItem( | |
icon: Icon(Icons.card_giftcard), | |
label: 'บิ๊กพอยต์', | |
), | |
BottomNavigationBarItem( | |
icon: Icon(Icons.grid_view), | |
label: 'สินค้า', | |
), | |
BottomNavigationBarItem( | |
icon: Icon(Icons.favorite), | |
label: 'ลิสต์ของฉัน', | |
), | |
BottomNavigationBarItem( | |
icon: Icon(Icons.person), | |
label: 'บัญชี', | |
), | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment