Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Dev Bros Dart SnippetsNew to Visual Studio Code? Get it now.
Dev Bros Dart Snippets

Dev Bros Dart Snippets

mrgnhnt96

|
4,305 installs
| (1) | Free
Dart extensions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Helpful Snippets to use in Flutter!

All templated(*) snippets are based off of the file name

For example:

File name:

my_favorites_screen.dart

Class name:

MyFavoritesScreen
fim                                                 Material Import
fTempScreen         -* New Screen                   Creates a new screen
fStateless          -* Stateless Widget             Creates a stateless widget
fStateful           -* Stateful Widget              Creates a stateful widget
fclassg             -* Freezed + Json Class         Creates a model class with freezed + json methods
fclass              -* Freezed Class                Creates a model class with freezed
fhydrate            -* Freezed toJson & fromJson    Creates freezed from/toJson methods for BLoC/Cubit (with HydratedBloc)
ffromJson           -* Freezed fromJson             Creates freezed fromJson method

ftxt                -Text                           Creates a text widget
fic                 -Icon                           Creates a icon widget
frow                -Row                            Creates a row widget
fcol                -Column                         Creates a column widget
fstack              -Stack                          Creates a stack widget
fcen                -Center                         Creates a center widget
fcon                -Container                      Creates a container widget
fwbox               -SizedBox - Width               Creates a sized box with a default width of 8
fhbox               -SizedBox - Height              Creates a sized box with a default height of 8
finit               -InitState                      Creates a initState method
fdidupdate          -Did Update Widget              Creates a didUpdateWidget method
fdis                -Dispose                        Creates a dispose method
fset                -Set State                      Creates a set state method
fdid                -Did Dependencies Change        Creates a did dependency change method
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft