import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class AppDrawer extends StatelessWidget { @override Widget build(BuildContext context) { return Drawer( child: ListView( padding: EdgeInsets.zero, children: [ DrawerHeader( child: Text("Oh That's A ..."), ), ListTile( title: Text("Month values"), onTap: () { Navigator.pop(context); Navigator.pushNamed(context, "/monthValues"); } ), ListTile( title: Text("Years"), onTap: () { Navigator.pop(context); Navigator.pushNamed(context, "/years"); } ), ListTile( title: Text("Notifications"), onTap: () { Navigator.pop(context); Navigator.pushNamed(context, "/notifications"); } ), ListTile( title: Text("Practice Months"), onTap: () { Navigator.pop(context); Navigator.pushNamed(context, "/practice/setup"); } ), ], ) ); } }