2021-02-28 17:19:25 +01:00
|
|
|
{
|
|
|
|
"New ARB file l10n term": {
|
|
|
|
"scope": "json",
|
|
|
|
"prefix": "term",
|
|
|
|
"body": ["\"$1\": \"$2\",", "\"@$1\": {}$0"]
|
|
|
|
},
|
|
|
|
"Assert not null": {
|
2021-09-24 11:27:05 +02:00
|
|
|
"scope": "dart",
|
2021-02-28 17:19:25 +01:00
|
|
|
"prefix": "assnotnull",
|
|
|
|
"body": ["assert($1 != null)$0"]
|
|
|
|
},
|
|
|
|
"sizedbox": {
|
2021-09-24 11:27:05 +02:00
|
|
|
"scope": "dart",
|
2021-02-28 17:19:25 +01:00
|
|
|
"prefix": "sizedbox",
|
|
|
|
"body": ["const SizedBox($1)$0"]
|
|
|
|
},
|
|
|
|
"theme": {
|
2021-09-24 11:27:05 +02:00
|
|
|
"scope": "dart",
|
2021-02-28 17:19:25 +01:00
|
|
|
"prefix": "theme",
|
|
|
|
"body": ["final theme = Theme.of(context);"]
|
|
|
|
},
|
|
|
|
"sleep": {
|
2021-09-24 11:27:05 +02:00
|
|
|
"scope": "dart",
|
2021-02-28 17:19:25 +01:00
|
|
|
"prefix": "sleep",
|
|
|
|
"body": [
|
|
|
|
"await Future<dynamic>.delayed(const Duration(milliseconds: ${1:1000}));$0"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"repeat widget": {
|
2021-09-24 11:27:05 +02:00
|
|
|
"scope": "dart",
|
2021-02-28 17:19:25 +01:00
|
|
|
"prefix": "repeat",
|
|
|
|
"body": ["for(int i = 0; i < $1; i++)$0"]
|
|
|
|
},
|
|
|
|
"L10n string": {
|
2021-09-24 11:27:05 +02:00
|
|
|
"scope": "dart",
|
2021-02-28 17:19:25 +01:00
|
|
|
"prefix": "l10n",
|
2022-01-20 11:50:24 +01:00
|
|
|
"body": ["L10n.of(context).$0"]
|
2021-09-23 19:25:03 +02:00
|
|
|
},
|
|
|
|
"Mobx store": {
|
|
|
|
"prefix": "mobxstore",
|
|
|
|
"body": [
|
|
|
|
"import 'package:mobx/mobx.dart';",
|
|
|
|
"",
|
|
|
|
"part '$TM_FILENAME_BASE.g.dart';",
|
|
|
|
"",
|
|
|
|
"class ${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g} = _${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g} with _$${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g};",
|
|
|
|
"",
|
|
|
|
"abstract class _${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g} with Store {",
|
|
|
|
"\t@observable",
|
|
|
|
"\t$0",
|
|
|
|
"}"
|
|
|
|
]
|
2021-02-28 17:19:25 +01:00
|
|
|
}
|
|
|
|
}
|