Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class _Main extends State<Main> {
- @override
- Widget build(BuildContext context) {
- Size screenSize = MediaQuery.of(context).size;
- return Scaffold(
- appBar: AppBar(
- title: Image.asset('images/gurita.png'),
- backgroundColor: Colors.black,
- centerTitle: true,
- actions: <Widget>[
- new Stack(
- children: <Widget>[
- IconButton(
- icon: Icon(Icons.shopping_cart),
- color: Colors.blue,
- onPressed: () {
- Navigator.push(
- context,
- CupertinoPageRoute(builder: (context) => Checkout()),
- );
- },
- ),
- new CircleAvatar(
- radius: 10.0,
- backgroundColor: Colors.red,
- child: Text(
- "0",
- style: TextStyle(color: Colors.white),
- ),
- ),
- ],
- ),
- IconButton(
- icon: Icon(Icons.more_vert),
- onPressed: () {
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) =>
- Help(), //Pindah halaman ke help, herp oh herp :v
- ),
- );
- },
- ),
- ],
- ),
- drawer: Drawer(
- child: Container(
- margin: EdgeInsets.only(right: 0),
- child: Column(
- children: <Widget>[
- UserAccountsDrawerHeader(
- decoration: BoxDecoration(
- image: DecorationImage(
- image: AssetImage('images/background.png'),
- ),
- ),
- accountName: new Text("Alam Jaya"),
- accountEmail: new Text("tengusky1@gmail.com"),
- currentAccountPicture: new CircleAvatar(
- backgroundColor: Colors.white,
- child: Icon(Icons.person),
- ),
- ),
- Expanded(
- child: Center(
- child: InkWell(
- onTap: () {
- Navigator.push(context,
- CupertinoPageRoute(builder: (context) => Profile()));
- },
- child: ListTile(
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- title: Text("Profile",
- style: TextStyle(fontWeight: FontWeight.bold)),
- ),
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- Expanded(
- child: InkWell(
- child: ListTile(
- title: Text("Voucher / Point",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- InkWell(
- child: ListTile(
- title: Text("My Flash Deal",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- Expanded(
- child: InkWell(
- child: ListTile(
- title: Text("Kategori",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- Expanded(
- child: InkWell(
- child: ListTile(
- title: Text("Reservasi",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- Expanded(
- child: InkWell(
- child: ListTile(
- title: Text("History",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- Expanded(
- child: InkWell(
- child: ListTile(
- title: Text("About",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- Expanded(
- child: InkWell(
- child: ListTile(
- title: Text("Login",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- ),
- new Divider(color: Colors.black26),
- Expanded(
- child: InkWell(
- child: ListTile(
- title: Text("Daftar",
- style: TextStyle(fontWeight: FontWeight.bold)),
- leading: IconButton(
- icon: Icon(Icons.person),
- onPressed: () {},
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- body: ListView(
- children: <Widget>[
- new Column(
- children: <Widget>[],
- ),
- ],
- ),
- );
- }
- }
Add Comment
Please, Sign In to add comment