/rp-consumer

Adds wrap with Consumer code action

Primary LanguageTypeScriptMIT LicenseMIT

Riverpod


Overview

This extension is heavily inspired from Bloc VSCode Extension.

VSCode support for the Riverpod Consumer and provides tools for effectively wrapping widgets under Consumer builder for Flutter apps.

Installation

Riverpod Consumer can be installed from the VSCode Marketplace or by searching within VSCode.

Commands

Command Description
RP Consumer: New Notifier Generate a new Notifier
RP Consumer: New Stateless File Generate a new Stateless widget file

You can activate the commands by launching the command palette (View -> Command Palette) and running entering the command name or you can right click on the directory in which you'd like to create the bloc/cubit and select the command from the context menu.

Code Actions

Action Description
Wrap with Consumer Wraps current widget in a Consumer
Remove Consumer Removes the selected Consumer. Caution: Can cause problems with Consumer that returns multiple widgets from the builder. It is a WIP.