A simple and efficient way to scaffold BLoC components in your Flutter project. This extension generates the necessary files (bloc, event, and state) with clean, customizable templates, helping you save time and focus on building features. Perfect for developers using the Flutter BLoC architecture.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
FlutterBlocGenerator is a simple and efficient way to scaffold BLoC components in your Flutter project. This extension generates the necessary files (bloc, event, and state) with clean, customizable templates, helping you save time and focus on building features.
Features
Quickly generate BLoC files in a structured folder.
Supports right-click menu integration for easy access.
Customizable templates for BLoC, Event, and State files.
Usage
Right-click on a folder in the VS Code Explorer.
Select "New Flutter BLoC" from the context menu.
Enter the name for your BLoC (e.g., TransactionBloc).
The extension will generate:
A folder named transaction_bloc.
Files:
transaction_bloc.dart
transaction_event.dart
transaction_state.dart.
Commands
New Flutter BLoC: Generate a new Flutter BLoC.
Requirements
This extension requires VS Code version 1.95.0 or higher.
Known Issues
None at this time.
Release Notes
0.0.1
Initial release with BLoC file generation and context menu integration.