Created
July 4, 2020 09:27
-
-
Save GursheeshSingh/530fd3c11cacb582be6ccd5854f529f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Navigate | |
Abbreviation- navigate | |
Navigator.push( | |
context, | |
MaterialPageRoute( | |
builder: (context) =>$Page$(), | |
), | |
); | |
//Navigate and clear stack | |
Abbreviation- navigateClearStack | |
Navigator.pushAndRemoveUntil( | |
context, | |
MaterialPageRoute( | |
builder: (context) => $ClassName$(), | |
), | |
(Route<dynamic> route) => false, | |
); | |
//Add height gap | |
Abbreviation- gaph | |
SizedBox(height: $height$), | |
//Add width gap | |
Abbreviation- gapv | |
SizedBox(width: $width$), | |
//Close screen | |
Abbreviation- pop | |
Navigator.pop(context); | |
//Delay | |
Abbreviation- delay | |
await Future.delayed(Duration(seconds: $seconds$)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment