Last active
June 16, 2022 01:22
-
-
Save mogaming217/9b849fbc462145e9e82a2f9863b38465 to your computer and use it in GitHub Desktop.
Flutter VSCode Snippets
This file contains hidden or 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
Show hidden characters
{ | |
"FlutterHookConsumerWidget": { | |
"scope": "dart", | |
"prefix": "hkw", | |
"body": [ | |
"import 'package:flutter/material.dart';", | |
"import 'package:hooks_riverpod/hooks_riverpod.dart';", | |
"", | |
"class ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/} extends HookConsumerWidget {", | |
"\tconst ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}({super.key});", | |
"", | |
"\t@override", | |
"\tWidget build(BuildContext context, WidgetRef ref) {", | |
"\t\treturn Container();", | |
"\t}", | |
"}", | |
"" | |
], | |
"description": "Flutter HookConsumerWidget snippet" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment