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

Flutter Dart Snippets

NirmalCode

|
818 installs
| (0) | Free
Snippets for flutter development
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

flutter-snippets

Snippets

Dart Snippets

Snippet Description
classfile Creates class which shares the name of the file
mixinfile Creates mixin which shares the name of the file

Flutter Snippets

Snippet Description
statelessWF Creates stateless widget which shares the name of the file

Freezed Snippets

Snippet Description
ptg Creates a filled-in g part statement
ptf Creates a filled-in freezed part statement
ptfg Creates a filled-in freezed & JSON part statements
fdataclass Freezed Data Class
funion Freezed Union
funioncase Freezed Union Case
dtos Freezed Data Transfer Object Class
fprimitive Freezed Primitive Class
fdataf Freezed Data Object Class with failure option
fempty Freezed Empty factory
fdatajson Freezed Data Class with json
fromJson Freezed Json factory

Value object Snippets

Snippet Description
vobj Create a Value Object Class
vobjl Creates a filled-in freezed part statement

Riverpod Snippets

Snippet Description
consumerWF Riverpod consumer widget from File Name
hookConsumerWF Riverpod hooks consumer widget from File Name
stateNotifierF Create State Notifier from File Name

Test Snippets

Snippet Description
testm Main Test Suite Setup
testg Creates a Test group with a test
tests Creates a single test
aaa Create AAA pattern test
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft