Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Flutter Bloc Feature GeneratorNew to Visual Studio Code? Get it now.
Flutter Bloc Feature Generator

Flutter Bloc Feature Generator

Harshil Patel

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

Flutter BLoC Feature Generator - VSCode Extension

Overview

The Flutter BLoC Feature Generator is a VSCode extension designed for Flutter developers who use the BLoC state management pattern. This extension automates the creation of a structured folder and file setup for new features in your Flutter projects, following a feature-based architecture.

When you right-click on a folder in your project, this extension allows you to generate a new feature by simply entering the feature name. It will create a folder structure with the following sub-folders and files:

  • bloc/
    • feature_bloc.dart
    • feature_event.dart
    • feature_state.dart
  • repository/
    • feature_repository.dart
  • model/
    • feature_model.dart
  • view/
    • feature_view.dart

The generated files will have basic boilerplate code, with the feature name used as a prefix for class names and filenames.

Features

  • Automatically generates BLoC, repository, model, and view folders with corresponding files.
  • Prefills the files with basic template code, including the correct feature name prefixes.
  • Automatically opens the view file for editing after generation.

Installation

Flutter BLoC Feature Generator can be installed from the VSCode Marketplace or by searching within VSCode.

Usage

  1. In the Explorer sidebar, right-click on the folder where you want to create a new feature.
  2. Select Create Feature from the context menu.
  3. Enter the feature name when prompted.
  4. The extension will generate the required folders and files in the selected folder, with the appropriate boilerplate code.
  5. The feature_view.dart file will automatically open in the editor for you to start working on.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

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