diff --git a/.gitignore b/.gitignore index 3e9471c..edbaef4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,11 +15,6 @@ *.iws .idea/ -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -.vscode/ - # Flutter/Dart/Pub related **/doc/api/ .dart_tool/ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..0e466ae --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,22 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug", + "request": "launch", + "type": "dart" + }, + { + "name": "Profile", + "request": "launch", + "type": "dart", + "flutterMode": "profile" + }, + { + "name": "Release", + "request": "launch", + "type": "dart", + "flutterMode": "release" + } + ] +} diff --git a/.vscode/lemmur.code-snippets b/.vscode/lemmur.code-snippets new file mode 100644 index 0000000..815ff39 --- /dev/null +++ b/.vscode/lemmur.code-snippets @@ -0,0 +1,33 @@ +{ + "New ARB file l10n term": { + "scope": "json", + "prefix": "term", + "body": ["\"$1\": \"$2\",", "\"@$1\": {}$0"] + }, + "Assert not null": { + "prefix": "assnotnull", + "body": ["assert($1 != null)$0"] + }, + "sizedbox": { + "prefix": "sizedbox", + "body": ["const SizedBox($1)$0"] + }, + "theme": { + "prefix": "theme", + "body": ["final theme = Theme.of(context);"] + }, + "sleep": { + "prefix": "sleep", + "body": [ + "await Future.delayed(const Duration(milliseconds: ${1:1000}));$0" + ] + }, + "repeat widget": { + "prefix": "repeat", + "body": ["for(int i = 0; i < $1; i++)$0"] + }, + "L10n string": { + "prefix": "l10n", + "body": ["L10n.of(context).$0"] + } +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8b81ad9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "files.associations": { + "*.arb": "json" + }, + "dart.showTodos": false +}