Skip to content

Commit

Permalink
support riverpod_generator, add when on asyncvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
tbm98 committed Feb 16, 2023
1 parent 5a4ea1e commit dbb5047
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 132 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Plugin Changelog

## [Unreleased]
- Support Riverpod generator.
- Add when on AsyncValue

## [2.223.0]
- Support 2022.3
Expand Down
39 changes: 25 additions & 14 deletions DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,30 @@ snippets such as `family` or `provider`.

## Snippets

| Shortcut | Description |
|----------|:-------------|
| consumer | New Consumer |
| consumerWidget | New ConsumerWidget |
| consumerStatefulWidget | New ConsumerStatefulWidget |
| hookConsumer | New HookConsumer (must import [hooks_riverpod](https://pub.dev/packages/hooks_riverpod)) |
| hookConsumerWidget | New HookConsumerWidget (must import [hooks_riverpod](https://pub.dev/packages/hooks_riverpod)) |
| changeNotifierProvider* | New ChangeNotifierProvider |
| provider* | New Provider |
| futureProvider* | New FutureProvider |
| streamProvider* | New StreamProvider |
| stateNotifier | New StateNotifier in [state_provider](https://pub.dev/packages/state_notifier) |
| stateNotifierProvider* | New StateNotifierProvider |
| stateProvider* | New StateProvider |
### Generator syntax
| Shortcut | Description |
|-------------------------------------------------------|:-----------------------------------------------------------------------------------------------|
| riverpodGeneratorFutureVariable | Create a future variable using generator |
| riverpodGeneratorAsyncNotifierProvider | Create a AsyncNotifierProvider using generator |
| riverpodGeneratorVariable | Create a variable using generator |
| riverpodGeneratorNotiferProvider | Create a NotifierProvider using generator |


### Normal syntax
| Shortcut | Description |
|-------------------------|:-----------------------------------------------------------------------------------------------|
| when | Use when on AsyncValue |
| consumer | New Consumer |
| consumerWidget | New ConsumerWidget |
| consumerStatefulWidget | New ConsumerStatefulWidget |
| hookConsumer | New HookConsumer (must import [hooks_riverpod](https://pub.dev/packages/hooks_riverpod)) |
| hookConsumerWidget | New HookConsumerWidget (must import [hooks_riverpod](https://pub.dev/packages/hooks_riverpod)) |
| changeNotifierProvider* | New ChangeNotifierProvider |
| provider* | New Provider |
| futureProvider* | New FutureProvider |
| streamProvider* | New StreamProvider |
| stateNotifier | New StateNotifier in [state_provider](https://pub.dev/packages/state_notifier) |
| stateNotifierProvider* | New StateNotifierProvider |
| stateProvider* | New StateProvider |

( * ) is suffix modifier, ex: autoDispose, family
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
pluginGroup=com.github.tbm98.flutterriverpodsnippets
pluginName=flutter-riverpod-snippets
pluginVersion=2.223.0
pluginVersion=2.223.1


# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
Expand Down
Loading

0 comments on commit dbb5047

Please sign in to comment.