buildDrawer method

Widget buildDrawer()

Implementation

Widget buildDrawer(){
  return Drawer(
    child: Container(
      padding: EdgeInsets.all(20),
      color: MyColors.grey_95,
      child: SingleChildScrollView(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
            Container(height: 10),
            Container(
              width: double.infinity,
              margin: EdgeInsets.symmetric(vertical: 30),
              child: Image.asset(
                Img.get('logo_small_round.png'), color: MyColors.grey_20,
                width: 60, height: 60
              ),
            ),
            Text("MaterialX Flutter", style: MyText.title(context)!.copyWith(color: Colors.white, fontWeight: FontWeight.w500)),
            Container(height: 5),
            Divider(color: Colors.white),
            buildMenuDrawer("Notification", (){

            }),
            buildMenuDrawer("Other Apps", (){
              Tools.directUrl("http://portfolio.dream-space.web.id/");
            }),
            buildMenuDrawer("Rate This App", (){
              Tools.directUrl("https://codecanyon.net/user/dream_space/portfolio");
            }),
            buildMenuDrawer("About", (){
              showDialog(context: context, builder: (_) => DialogAboutRoute());
            }),
          ],
        ),
      ),
    ),
  );
}