I have created NavigationDrawer
in flutter before navigation drawer screen appear to user I have 3 screen before it
- splash screen
- intro slider
- Login screen
- NavigationDrawer
I want to close my app when user press back button in android phone from navigationdrawer screen but it will shows black screen.
I have called below called for navigation from login to drawer
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(
builder: (BuildContext context) => NavigationDrawerDemo(),
),
ModalRoute.withName('/LoginFieldForm'));
I called loginfieldform with
Navigator.push(context,
new MaterialPageRoute(builder: (context) =>new LoginFieldForm()));
LoginFieldForm
please? I might know what's wrong – magicleon94