/flutter-riverpod-snippets

https://marketplace.visualstudio.com/items?itemName=robert-brunhage.flutter-riverpod-snippets

MIT LicenseMIT

Flutter Riverpod Snippets

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

greetingProviderGif

Snippets

Shortcut Description
consumer Creates the Consumer widget
stlessConsumer Creates a ConsumerStateless widget
stfulConsumer Creates a ConsumerStateful widget
stlessHookConsumer Creates a Stateless HookConsumer widget
stfulHookConsumer Creates a Stateful HookConsumer widget
provider Creates a simple riverpod provider
providerFamily Creates a provider with the family modifier
futureProvider Creates a FutureProvider
futureProviderFamily Creates a FutureProvider with the family modifier
streamProvider Creates a StreamProvider
streamProviderFamily Creates a StreamProvider with the family modifier
changeNotifierProvider Creates a ChangeNotifierProvider
changeNotifierProviderFamily Creates a ChangeNotifierProvider with the family modifier
stateProvider Creates a StateProvider
stateProviderFamily Creates a StateProvider with the family modifier
stateProviderFamily Creates a StateProvider with the family modifier
stateNotifierProvider Creates a StateNotifier provider
stateNotifierProviderFamily Creates a StateNotifierProvider with the family modifier
stateNotifier Creates a class that extends StateNotifier and allows you to edit the types
asyncNotifierProvider Create an AsyncNotifierProvider
asyncNotifierProviderFamily Create an AsyncNotifierProvider with Family Modifier
asyncNotifier Create an AsyncNotifier class
asyncNotifierFamily Create an AsyncNotifier with Family Parameter
notifierProvider Create a NotifierProvider
notifierProviderFamily Create a NotifierProvider with Family Modifier
notifier Create a Notifier class
notifierFamily Create a Notifier with Family Parameter
streamNotifierProvider Create an StreamNotifierProvider
streamNotifierProviderFamily Create an StreamNotifierProvider with Family Modifier
streamNotifier Create an StreamNotifier class
streamNotifierFamily Create an StreamNotifier with Family Parameter
listen Creates a Provider Listenable
riverpod Creates a simple Provider
riverpodKeepAlive Creates a simple keep alive Provider
riverpodFuture Creates a FutureProvider
riverpodFutureKeepAlive Creates a keep alive FutureProvider
riverpodStream Creates a StreamProvider
riverpodStreamKeepAlive Creates a keep alive StreamProvider
riverpodClass Creates a class Provider
riverpodClassKeepAlive Creates a keep alive class Provider
riverpodAsyncClass Creates an async class Provider
riverpodAsyncClassKeepAlive Creates a keep alive async class Provider
riverpodStreamClass Creates an stream class Provider
riverpodStreamClassKeepAlive Creates a keep alive stream class Provider
riverpodPart Create a part statement for Riverpod

Contributing

Feel free to open PRs for small issues such as typos. For large issues or features, please open an issue first.

How to do it

First fork the repo on GitHub.

git clone <your-forked-repo>

git switch -c my-fix
# fix some code...

git commit -m "Fix typo in readme"
git push origin my-fix

The commit naming follows this structure

Add the changes done to CHANGELOG.md and update the version in package.json

Release Notes

Please check Changelog