// **** 1 **** //
// 1-1- Add "Get" before your MaterialApp
// 1-2-
GetMaterialApp( // Before: MaterialApp(
home: NewScreen(),
)
// 1-3- Navigate to a new screen
Get.to(NextScreen());
//or route name
Get.toNamed('/login');
// **** 2 **** //
Navigator.of(context).push(MaterialPageRoute(builder: (context) => NewScreen()));
//or route name
Navigator.of(context).pushNamed('/login');
// **** 3 **** //
Navigator.pushReplacement(context,MaterialPageRoute(builder: (context) => NewScreen()),);