-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from RobertBrunhage/version-1.0.0
Version 1.0.0
- Loading branch information
Showing
7 changed files
with
166 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,77 @@ | ||
{ | ||
"name": "flutter-riverpod-snippets", | ||
"displayName": "Flutter Riverpod Snippets", | ||
"description": "Quick and easy Flutter Riverpod snippets", | ||
"icon": "logo.jpg", | ||
"version": "0.2.1", | ||
"publisher": "robert-brunhage", | ||
"homepage": "https://github.com/RobertBrunhage/flutter-riverpod-snippets", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/RobertBrunhage/flutter-riverpod-snippets" | ||
}, | ||
"keywords": [ | ||
"Flutter", | ||
"Dart", | ||
"Riverpod", | ||
"Snippets" | ||
], | ||
"engines": { | ||
"vscode": "^1.57.1" | ||
}, | ||
"categories": [ | ||
"Snippets" | ||
], | ||
"contributes": { | ||
"snippets": [ | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/consumer.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/change_notifier_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/future_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/scoped_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/state_notifier.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/change_notifier.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/state_notifier_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/state_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/stream_provider.code-snippets" | ||
} | ||
] | ||
} | ||
} | ||
"name": "flutter-riverpod-snippets", | ||
"displayName": "Flutter Riverpod Snippets", | ||
"description": "Quick and easy Flutter Riverpod snippets", | ||
"icon": "logo.jpg", | ||
"version": "1.0.0", | ||
"publisher": "robert-brunhage", | ||
"homepage": "https://github.com/RobertBrunhage/flutter-riverpod-snippets", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/RobertBrunhage/flutter-riverpod-snippets" | ||
}, | ||
"keywords": [ | ||
"Flutter", | ||
"Dart", | ||
"Snippets", | ||
"Riverpod" | ||
], | ||
"engines": { | ||
"vscode": "^1.57.1" | ||
}, | ||
"categories": [ | ||
"Snippets" | ||
], | ||
"contributes": { | ||
"snippets": [ | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/consumer.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/change_notifier_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/future_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/scoped_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/state_notifier.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/state_notifier_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/state_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/stream_provider.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/consumer_widget.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/hook_consumer.code-snippets" | ||
}, | ||
{ | ||
"language": "dart", | ||
"path": "./snippets/provider_listenable.code-snippets" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"Consumer Stateless": { | ||
"scope": "dart", | ||
"prefix": "stlessConsumer", | ||
"description": "Create a ConsumerStatelessWidget", | ||
"body": [ | ||
"class $1 extends ConsumerWidget {", | ||
"\tconst $1({Key? key}) : super(key: key);", | ||
"\t@override", | ||
"\tWidget build(BuildContext context, WidgetRef ref) {", | ||
"\t\treturn Container();", | ||
"\t}", | ||
"}" | ||
] | ||
}, | ||
"Consumer Stateful": { | ||
"scope": "dart", | ||
"prefix": "stfulConsumer", | ||
"description": "Create a ConsumerStatefulWidget", | ||
"body": [ | ||
"class $1 extends ConsumerStatefulWidget {", | ||
"\t@override", | ||
"\tConsumerState<ConsumerStatefulWidget> createState() => _$1State();", | ||
"}", | ||
|
||
"class _$1State extends ConsumerState<$1> {", | ||
|
||
"\t@override", | ||
"\tWidget build(BuildContext context) {", | ||
"\t\treturn Container();", | ||
"\t}", | ||
"}" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"Hook Consumer Widget": { | ||
"scope": "dart", | ||
"prefix": "hookConsumer", | ||
"description": "Create a HookConsumerWidget", | ||
"body": [ | ||
"class $1 extends HookConsumerWidget {", | ||
"\tconst $1({Key? key}) : super(key: key);", | ||
|
||
"\t@override", | ||
"\tWidget build(BuildContext context, WidgetRef ref) {", | ||
"\t\treturn Container();", | ||
"\t}", | ||
"}" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"Provider Listenable": { | ||
"scope": "dart", | ||
"prefix": "listen", | ||
"description": "Create a provider listenable", | ||
"body": [ | ||
"ref.listen<$1>($2, (value) { ", | ||
"\t$3", | ||
"});"] | ||
} | ||
} |