Skip to content

Some built-in live templates support developers to use Flutter Riverpod faster on Intellij based

Notifications You must be signed in to change notification settings

dominik-masson/flutter-riverpod-live-templates

 
 

Repository files navigation

Flutter Riverpod live templates

Flutter Riverpod live templates is a way to enhance the way you use Riverpod. It contains a collection of different snippets such as family or provider.

Build Version Downloads

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "flutter riverpod snippets" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Requirements

IntelliJ based: since-build: 203 learn more

Snippets

Generator syntax

Shortcut Description
riverpodGeneratorVariable Create a variable using generator
riverpodGeneratorFutureVariable Create a future variable using generator
riverpodGeneratorNotifierProvider Create a NotifierProvider using generator
riverpodGeneratorAsyncNotifierProvider Create a AsyncNotifierProvider using generator
riverpodGeneratorStreamNotifierProvider Create a StreamNotifierProvider using generator
riverpodPart Create a part statement for Riverpod

all providers can be created with keep alive and family

Normal syntax

Shortcut Description
consumer New Consumer
consumerWidget New ConsumerWidget
consumerStatefulWidget New ConsumerStatefulWidget
hookConsumer New HookConsumer (must import hooks_riverpod)
hookConsumerWidget New HookConsumerWidget (must import hooks_riverpod)
changeNotifierProvider* New ChangeNotifierProvider
provider* New Provider
futureProvider* New FutureProvider
streamProvider* New StreamProvider
stateNotifier New StateNotifier in state_provider
stateNotifierProvider* New StateNotifierProvider
stateProvider* New StateProvider

( * ) is suffix modifier, ex: autoDispose, family

About

Some built-in live templates support developers to use Flutter Riverpod faster on Intellij based

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Kotlin 100.0%