Answers for "flutter pushAndRemoveUntil"

2

push and remove until flutter

//named
Navigator.of(context)
    .pushNamedAndRemoveUntil('/login', (Route<dynamic> route) => false);
    
//not named
Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (context) =>
    LoginScreen()), (Route<dynamic> route) => false),
Posted by: Guest on June-09-2020
0

navigator.pushandremoveuntil flutter

Navigator.pushAndRemoveUntil<void>(
                context,
                MaterialPageRoute<void>(
                  builder: (BuildContext context) => LoginPage(),
                ),
                (Route<dynamic> route) => false,
              );
Posted by: Guest on August-31-2021

Code answers related to "flutter pushAndRemoveUntil"

Code answers related to "Dart"

Browse Popular Code Answers by Language