plugin_bloc_freezed

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

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.

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

  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 for Android Studio, minimum required version 2021.2.1. Generating Bloc with Freezed states and events

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

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

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

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

Generated files:

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

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

It remains only to generate freezed models by:

dart run build_runner build

GitHub

View Github