Search
 
SCRIPT & CODE EXAMPLE
 

DART

open another page with routeflutter

// **** 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()),);
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter style diabled button 
Dart :: card border radius flutter 
Dart :: image from assets in flutter 
Dart :: flutter dictionary example 
Dart :: disable flutter listtile 
Dart :: dart list remove range 
Dart :: flutter video thumbnail from url 
Dart :: convert a list to string in flutter 
Dart :: flutter safearea 
Dart :: flutter listview how to remove scroll bar 
Dart :: sizedbox flutter 
Dart :: flutter fittedbox 
Dart :: dart filter list 
Dart :: how to check whether a list in dart is empty or not 
Dart :: DioError (DioError [DioErrorType.DEFAULT]: Converting object to an encodable object failed: Instance of 
Dart :: dart deep copy list 
Dart :: flutter random int 
Dart :: dart delay 
Dart :: flutter image size not working 
Dart :: flutter single line list 
Dart :: get user country automatically flutter 
Dart :: empty widget in flutter 
Dart :: text substring dart 
Dart :: how to hide status bar phone flutter 
Dart :: convert future list to list dart 
Dart :: next row column in flutter 
Dart :: flutter container with custom shape 
Dart :: flutter timeseries chart 
Dart :: how to store special characters in dart string 
Dart :: title in app bar from start flutter 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =