mirrored_repositories/Flutter-Shooping-App
import 'package:flutter/material.dart';
import 'HomePage.dart';
import 'Profile.dart';

class AppDrawer extends StatefulWidget {
  @override
  _AppDrawerState createState() => _AppDrawerState();
}

class _AppDrawerState extends State<AppDrawer> {
  @override
  Widget build(BuildContext context) {
    return (
       Drawer(
        child: Column(
          children: <Widget>[
            UserAccountsDrawerHeader(
              accountName: Text(
                'Mohamed Talaat',
                style: TextStyle(fontSize: 20),
              ),
              accountEmail: Text(
                'talat7777777@gmail.com',
                style: TextStyle(fontSize: 16),
              ),
              currentAccountPicture: GestureDetector(
                child: CircleAvatar(
                  backgroundImage: ExactAssetImage('assets/profile.jpg'),
                ),
              ),
            ),
            Column(children: <Widget>[
              InkWell(
                onTap: () {
                  Navigator.push(context, MaterialPageRoute(builder: (context){
                    return Profile();
                  }));



                },
                child: ListTile(
                  title: Text(
                    'Profile',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.person_outline,
                    size: 30,
                  ),
                ),
              ),
              InkWell(
                onTap: () {
                  Navigator.push(context, MaterialPageRoute(builder: (context){
                    return HomePage();
                  }));
                },
                child: ListTile(
                  title: Text(
                    'Home Page',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.home,
                    size: 30,
                  ),
                ),
              ),
              InkWell(
                onTap: () {},
                child: ListTile(
                  title: Text(
                    'My Orders',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.shopping_basket,
                    size: 30,
                  ),
                ),
              ),
              InkWell(
                onTap: () {},
                child: ListTile(
                  title: Text(
                    'Home Page',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.home,
                    size: 30,
                  ),
                ),
              ),
              InkWell(
                onTap: () {},
                child: ListTile(
                  title: Text(
                    'Shopinng Cart',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.shopping_cart,
                    size: 30,
                  ),
                ),
              ),
              InkWell(
                onTap: () {},
                child: ListTile(
                  title: Text(
                    'Favorits',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.favorite_border,
                    size: 30,
                  ),
                ),
              ),
              InkWell(
                onTap: () {},
                child: ListTile(
                  title: Text(
                    'Categories',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.dashboard,
                    size: 30,
                  ),
                ),
              ),
              Divider(
                height: 20,
                thickness: 1,
              ),
              InkWell(
                onTap: () {},
                child: ListTile(
                  title: Text(
                    'Settings',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.settings,
                    size: 30,
                  ),
                ),
              ),
              InkWell(
                onTap: () {},
                child: ListTile(
                  title: Text(
                    'About',
                    style: TextStyle(fontSize: 18),
                  ),
                  leading: Icon(
                    Icons.help_outline,
                    size: 30,
                  ),
                ),
              ),
            ]),
          ],
        ),
      )
    );
  }
}
