Last active
September 19, 2021 01:36
-
-
Save JeanRoldanDev/06e8d7750f4643bd6425471443da6883 to your computer and use it in GitHub Desktop.
config snippers
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
{ | |
// Autor: Jean Roldan | |
// Update: 19/09/2021 16:04 | |
"JsonSerializable": { | |
"prefix": "!json", | |
"body": [ | |
"factory ${1:NameModel}.fromJson(Map<String, dynamic> json) => _$${1:NameModel}FromJson(json);", | |
"Map<String, dynamic> toJson() => _$${1:NameModel}ToJson(this);" | |
], | |
"description": "JsonSerializable" | |
}, | |
"ValueNotifier": { | |
"prefix": "vn", | |
"body": [ | |
"ValueNotifier<${1:Type}> ${2:Name} = ValueNotifier<${1:Type}>(${3:Value});" | |
], | |
"description": "ValueNotifier" | |
}, | |
"Text": { | |
"prefix": "t", | |
"body": [ | |
"Text('${1:}'),", | |
], | |
"description": "Atajo para Textos" | |
}, | |
"Container": { | |
"prefix": "con", | |
"body": [ | |
"Container(", | |
"child:${1:},", | |
")," | |
], | |
"description": "Atajo para ValueNotifier" | |
}, | |
"Column": { | |
"prefix": "co", | |
"body": [ | |
"Column(", | |
"\tchildren: [", | |
"\t${1:}", | |
"\t],", | |
")," | |
], | |
"description": "Column" | |
}, | |
"Row": { | |
"prefix": "ro", | |
"body": [ | |
"Row(", | |
"\tchildren: [", | |
"\t${1:}", | |
"\t],", | |
")," | |
], | |
"description": "Row" | |
}, | |
"Padding": { | |
"prefix": "pad", | |
"body": [ | |
"Padding(", | |
"\tpadding: ${1:padding},", | |
"\tchild: ${2:tchild},", | |
")," | |
], | |
"description": "Widget Padding" | |
}, | |
"Padding All": { | |
"prefix": "pa", | |
"body": [ | |
"EdgeInsets.all(${1:value})," | |
], | |
"description": "EdgeInsets All" | |
}, | |
"Padding Horizontal": { | |
"prefix": "ph", | |
"body": [ | |
"EdgeInsets.symmetric(horizontal: ${1:value})" | |
], | |
"description": "EdgeInsets Symmetric Horizontal" | |
}, | |
"Padding Vertical": { | |
"prefix": "pv", | |
"body": [ | |
"EdgeInsets.symmetric(vertical: ${1:value})" | |
], | |
"description": "EdgeInsets Symmetric Vertical" | |
}, | |
"Padding Horizontal_Vertical": { | |
"prefix": "phv", | |
"body": [ | |
"EdgeInsets.symmetric(horizontal: ${1:valueH}, vertical: ${2:valueV})" | |
], | |
"description": "EdgeInsets Symmetric Horizontal,Vertical" | |
}, | |
"SizedBox Width": { | |
"prefix": "sw", | |
"body": [ | |
"SizedBox(width: ${1:})," | |
], | |
"description": "SizedBox(width: )" | |
}, | |
"SizedBox Height": { | |
"prefix": "sh", | |
"body": [ | |
"SizedBox(height: ${1:})," | |
], | |
"description": "SizedBox(height: )," | |
}, | |
"Image Asset": { | |
"prefix": "img", | |
"body": [ | |
"Image.asset(", | |
"\t${1:name},", | |
"\tfit: BoxFit.cover,", | |
")," | |
], | |
"description": "Image.asset" | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment