Skip to content

Instantly share code, notes, and snippets.

View tmldoc's full-sized avatar

Huthaifa Muayyad tmldoc

View GitHub Profile
@DevKhalyd
DevKhalyd / push_page.dart
Created August 4, 2020 14:43
push_pages_examples
//Just push to the next page
nextPage(BuildContext context, Widget widget) => Navigator.push(
context,
MaterialPageRoute(
builder: (context) => widget,
));
///Remove the stack
nextRemoveWhole(BuildContext context, String route) =>
Navigator.of(context).pushNamedAndRemoveUntil(route, (route) => false);