plugin_bloc_freezed

Plugin for Android Studio, minimum required version 2021.2.1. Generating Bloc(flutter_bloc) with Freezed states and events.

Introduction

BlocFreezed plugin for Android Studio with support for the Bloc Library and Freezed. Allow to create some boilerplate folder, bloc and states with events files.

Installation

You can install jar file of plugin manualy:

  1. Download file by link.

    Download 1.0 version

  2. In Android Studio open File - Settings - Plugins. And choose Install Plugin From Disk, select jar file.

select_plugin_file

  1. Click Apply and OK.

How to use

Simply right click on the File Project view, go to New -> Bloc Freezed. Also you can use shortcut CTRL+NUMPAD-2

plugin_action

Give it a name in dialog windows, prefer using CameCase format.

plugin_dialog_window

Click OK. And after you can see new folder and files in File Project View.

plugin_created_files

Generated files:

plugin_created_bloc

plugin_created_events_states

It remains only to generate freezed models by:

dart run build_runner build

GitHub

View Github