Flutter Snippets
A collection of Flutter snippets to improve your development speed.
Snippets
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Flutter Snippets. The extension's id is flutter-snippets.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Flutter Snippets
A collection of Flutter snippets to improve your development speed.
Snippets
| Snippet | Expands to | Description |
|---|---|---|
stless | Stateless Widget | Create a Stateless Widget |
stful | Consumer Stateful | Create a StatefulWidget |
mateapp | Material App | Create a MaterialApp |
cupeapp | Cupertino App | Create a CupertinoApp |
init | InitState | Initialize state for a StatefulWidget |
dis | Dispose | Dispose resources for a StatefulWidget |
reassemble | Reassemble | Called whenever the application is reassembled during debugging, for example during hot reload. |
didChange | DidChangeDependencies | Called when a dependency of this State object changes |
didUpdateW | didUpdateWidget | Called whenever the widget configuration changes. |
build | Build Method | Override build method to define widget UI |
lvb | ListView.Builder | Create a ListView builder constructor. |
gvb | GridView.Builder | Create a GridView builder constructor. |
gvc | GridView.Count | Create a GridView count constructor. |
stfulB | Stateful Builder | Creates a StatefulBuilder. |
layoutB | Layout Builder | Creates a layout builder. |
importM | Material Package | Import Material package |
importC | Cupertino Package | Import Cupertino package |
edgeall | EdgeInsets all constructor | EdgeInsets widget snippet with named constructor all |
edgesym | EdgeInsets symmetric constructor | EdgeInsets widget snippet with named constructor symmetric |