Navigator.pushAndRemoveUntil( context, MaterialPageRoute( builder: (BuildContext context) => LoginPage(), ), (route) => false, );