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": {
|
|
|
|
"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<dynamic>.delayed(const Duration(milliseconds: ${1:1000}));$0"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"repeat widget": {
|
|
|
|
"prefix": "repeat",
|
|
|
|
"body": ["for(int i = 0; i < $1; i++)$0"]
|
|
|
|
},
|
|
|
|
"L10n string": {
|
|
|
|
"prefix": "l10n",
|
2021-04-11 00:55:04 +02:00
|
|
|
"body": ["L10n.of(context)!.$0"]
|
2021-02-28 17:19:25 +01:00
|
|
|
}
|
|
|
|
}
|