Drawer in flutter, it's old and very easy to integrate. Because you may be found so many tutorials on this topic.
So don't west much time for explanation or theory. But for iOS user might be found issue in swipe to navigation back page after click on menu item.
Instead of use below code in onTap() Method of ListTile
Use pushReplacement in onTap().
Please Click Here to download source code.
So don't west much time for explanation or theory. But for iOS user might be found issue in swipe to navigation back page after click on menu item.
Instead of use below code in onTap() Method of ListTile
onTap: () {
Navigator.pop(ctxt);
Navigator.push(ctxt, new MaterialPageRoute(builder: (ctxt) => new FirstPage()));
}
Use pushReplacement in onTap().
onTap: () {
Navigator.pushReplacement(ctxt, new MaterialPageRoute(builder: (ctxt) => new FirstPage()));
}
For more information about pushReplacement.Please Click Here to download source code.