Generate Redux State, reducer, action, and Middleware via VS Code Extension — “Flutter Redux Gen”

BalaDhruv
Flutter Community
Published in
3 min readOct 8, 2020
Generate Flutter Redux State management code — VS Code Extension

What is “Flutter Redux Gen”?

Flutter Redux Gen is the VS Code Extension for generating flutter_redux state, reducer, action, and middleware code for lazy developers like me.

Extension Link:
https://marketplace.visualstudio.com/items?itemName=BalaDhruv.flutter-redux-gen

Why you need this extension?

In one click you can create State, reducer, middleware, and action. If you created a parent state it will automatically import the new state into the parent state.

Features

  1. Create Parent Set
  2. Create Set
  3. Create State
  4. Create Reducer
  5. Create Middleware
  6. Create Action

Let’s see how to create these.

Create Parent Set

It creates a folder with the given name that contains state, reducer, and middleware files.
It will act as a Parent. Whenever you will create a new Set, that will automatically be imported into this parent set.

Create Set

Create Set Demo — Flutter Redux Gen

It creates a folder with the given name that contains action, reducer, middleware, and state files.
If you have already created Parent Set this set will automatically be imported in that state.

Create State

Create State Demo — Flutter Redux Gen

It will create a file redux State with a given name that contains the auto-generated Code.

Create Reducer

Create Reducer Demo using Flutter Redux Gen

It will create a file redux Reducer with a given name that contains the auto-generated Code.

Create Middleware

Create Middleware Demo using Flutter Redux Gen

It will create a file redux Middleware with a given name that contains the auto-generated Code.

Create Action

Create Action Demo using Flutter Redux Gen

It will create a file redux Action with a given name that contains the auto-generated Code.

Thanks for reading this article if you find this extension useful, please add your review and comments in the VS Code Market place.

Dont Forget to donate and encourage open source developers.

buymeacoffee.com/BalaDhruv

Don’t forget to suggest to friends.

https://www.twitter.com/FlutterComm

--

--