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

Flutter Current

Third Version Technology Ltd

|
11 installs
| (0) | Free
Code snippets, commands, and code actions to speed up development workflow when using the Current state management package for Flutter.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flutter Current Extension

This extension contains Flutter code snippets, commands and Quick Fix actions for the Current State Management package.

Snippets

Trigger Content
currentvm Create a new CurrentViewModel

currentvm example
currentwidget Create a new CurrentWidget

currentwidget example

Code Actions

Action Name Description
Add CurrentTextController Support Adds the CurrentTextControllersLifecycleMixin to the State class and adds the necessary lifecycle method overrides to properly dispose of any CurrentTextControllers created in the widget. (Requires Current 3.0.0 or greater)
Scaffold CurrentWidget and ViewModel When activated on an empty .dart file, scaffolds a new CurrentWidget and CurrentViewModel with the necessary boilerplate to get started.
Add CurrentProperty to currentProps list When activated on a CurrentProperty, adds the property to the CurrentViewModel's currentProps list.
Add missing CurrentProperties to list When activated on the currentProps list in a CurrentViewModel, adds any missing CurrentProperty fields to the list.
Convert to CurrentWidget When activated on a regular StatefulWidget or StatelessWidget, converts it to a CurrentWidget.

Commands

Command Name Description
Scaffold CurrentWidget and ViewModel Prompts you for a file name and design language (material or cupertino) and creates a new CurrentWidget and CurrentViewModel with the necessary boilerplate to get started. If you are using Current 3.0.0 or greater, will also be presented with an option to create a CurrentWidget with CurrentTextController support.

Context Menu

When right-clicking on a folder in the VS Explorer pane, there is now an option to create new CurrentWidget and ViewModel files in that folder. This will prompt you for a file name and design language (material or cupertino) and creates a new CurrentWidget and CurrentViewModel with the necessary boilerplate to get started. If you are using Current 3.0.0 or greater, will also be presented with an option to create a CurrentWidget with CurrentTextController support.

Requirements

Flutter version 3.38.0 or greater.

Minimum supported Current version 2.0.0, however 3.0.0 or greater is recommended to get the most out of this extension as many of the new features of this extension require Current 3.0.0.

Reporting issues

If you discover any issues with this extension please file an issue on the Current repository.

Release Notes

2.0.1

  • Move the context menu command to the bottom of the menu to avoid conflicts with other commonly used context menu options like "New File" and "New Folder".

2.0.0

  • Updated extension name and description to better reflect available features
  • Minor updates to existing snippets so the cursor ends up in a more intuitive place after insertion
  • Added new Command Palette command to create a new CurrentWidget and View Model. Will prompt you for a file name and design language (material or cupertino). If you are using Current 3.0.0 or greater, will also be presented with an option to create a CurrentWidget with CurrentTextController support.
  • Added a Context Menu option when right-clicking on a folder in the VS Explorer pane to create new CurrentWidget and ViewModel files in that folder.
  • Added several VS Quick Code Actions have been added. These can be activated using your Quick Fix keyboard shortcut and your cursor is:
    1. On an empty .dart file, scaffold a new CurrentWidget and CurrentViewModel with the necessary boilerplate to get started.
    2. On a CurrentProperty, add the property to the CurrentViewModel's currentProps list.
    3. On the currentProps list in a CurrentViewModel, add any missing CurrentProperty fields to the list.
    4. On a regular StatefulWidget or StatelessWidget, convert it to a CurrentWidget.
    5. On a CurrentState class declaration, add the CurrentTextControllersLifecycleMixin to the class declaration and add the necessary lifecycle method overrides. (Requires Current 3.0.0 or greater)
    6. On a CurrentTextController, bind the controller to a property and add to the bindCurrentControllers method automatically. (Requires Current 3.0.0 or greater)

1.0.0

Initial release of Current Flutter Snippets.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft