flutter-riverpod-snippets
flutter-riverpod-snippets copied to clipboard
https://marketplace.visualstudio.com/items?itemName=robert-brunhage.flutter-riverpod-snippets
Hey Robert, I've been using your extension for a very long time and I love it. However I've some cool ideas in my mind regarding this Extension: - Code actions...
# Description This pull request updates the generated code type in the snippets from FutureOr to Future to align with the changes in the official Riverpod documentation. # Motivation The...
Corrects the name of the snippets that had issues
The ChangeNotifier snippet incorrectly has the name "State Notifier" https://github.com/RobertBrunhage/flutter-riverpod-snippets/blob/ee10f52d4e2f75bf3ac3fa67d441b493e5770fbc/snippets/change_notifier.code-snippets#L2 The StreamProvider snippets both have "State Provider" in their names https://github.com/RobertBrunhage/flutter-riverpod-snippets/blob/ee10f52d4e2f75bf3ac3fa67d441b493e5770fbc/snippets/stream_provider.code-snippets#L2 and https://github.com/RobertBrunhage/flutter-riverpod-snippets/blob/ee10f52d4e2f75bf3ac3fa67d441b493e5770fbc/snippets/stream_provider.code-snippets#L12
An example of how a provider is generated now is as below ``` @riverpod String helloWorld(HelloWorldRef ref) { return 'Hello world'; } ``` However, with riverpod 2.6.0, the same should...
This allows https://github.com/hrsh7th/vim-vsnip to use the snippets