Skip to content

Commit f21dd4d

Browse files
leoshusarNash0x7E2
authored andcommitted
fix: formatting, removed trailing whitespaces
1 parent 198db77 commit f21dd4d

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

snippets/snippets.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
" @override",
2727
" Widget build(BuildContext context) {",
2828
" return Container(",
29-
" child: ${2:null},",
29+
" child: ${2:null},",
3030
" );",
3131
" }",
3232
"}"
@@ -80,7 +80,7 @@
8080
"prefix": "initS",
8181
"body": [
8282
"@override",
83-
"void initState() { ",
83+
"void initState() {",
8484
" super.initState();",
8585
" ${0:}",
8686
"}"
@@ -91,7 +91,7 @@
9191
"prefix": "dis",
9292
"body": [
9393
"@override",
94-
"void dispose() { ",
94+
"void dispose() {",
9595
" ${0:}",
9696
" super.dispose();",
9797
"}"
@@ -137,8 +137,8 @@
137137
"ListView.builder(",
138138
" itemCount: ${1:1},",
139139
" itemBuilder: (BuildContext context, int index) {",
140-
" return ${2:};",
141-
" },",
140+
" return ${2:};",
141+
" },",
142142
"),"
143143
],
144144
"description": "Creates a scrollable, linear array of widgets that are created on demand.Providing a non-null `itemCount` improves the ability of the [ListView] to estimate the maximum scroll extent."
@@ -149,11 +149,11 @@
149149
"ListView.separated(",
150150
" itemCount: ${1:1},",
151151
" separatorBuilder: (BuildContext context, int index) {",
152-
" return ${2:};",
153-
" },",
152+
" return ${2:};",
153+
" },",
154154
" itemBuilder: (BuildContext context, int index) {",
155-
" return ${3:};",
156-
" },",
155+
" return ${3:};",
156+
" },",
157157
"),"
158158
],
159159
"description": "Creates a fixed-length scrollable linear array of list 'items' separated by list item 'separators'."
@@ -204,7 +204,7 @@
204204
"body": [
205205
"CustomScrollView(",
206206
" slivers: <Widget>[",
207-
" ${0:}",
207+
" ${0:}",
208208
" ],",
209209
"),"
210210
],
@@ -236,7 +236,7 @@
236236
" },",
237237
"),"
238238
],
239-
"description": "Creates an Animated Builder. The widget specified to `child` is passed to the `builder` "
239+
"description": "Creates an Animated Builder. The widget specified to `child` is passed to the `builder`"
240240
},
241241
"Stateful Builder": {
242242
"prefix": "statefulBldr",
@@ -367,8 +367,8 @@
367367
"body": [
368368
"@override",
369369
"String toString() {",
370-
"return ${1:toString};",
371-
" }"
370+
" return ${1:toString};",
371+
"}"
372372
],
373373
"description": "Returns a string representation of this object."
374374
},
@@ -399,9 +399,9 @@
399399
"description": "Create a MaterialApp",
400400
"body": [
401401
"import 'package:flutter/material.dart';",
402-
" ",
402+
"",
403403
"void main() => runApp(MyApp());",
404-
" ",
404+
"",
405405
"class MyApp extends StatelessWidget {",
406406
" @override",
407407
" Widget build(BuildContext context) {",
@@ -427,9 +427,9 @@
427427
"description": "Create a CupertinoApp",
428428
"body": [
429429
"import 'package:flutter/cupertino.dart';",
430-
" ",
430+
"",
431431
"void main() => runApp(MyApp());",
432-
" ",
432+
"",
433433
"class MyApp extends StatelessWidget {",
434434
" @override",
435435
" Widget build(BuildContext context) {",
@@ -454,33 +454,33 @@
454454
"prefix": "tweenAnimationBuilder",
455455
"body": [
456456
"TweenAnimationBuilder(",
457-
" duration: ${1:const Duration(),}",
458-
" tween: ${2:Tween(),}",
459-
" builder: (BuildContext context, ${3:dynamic} value, Widget? child) {",
460-
" return ${4:Container();}",
461-
" },",
462-
" ), "
457+
" duration: ${1:const Duration(),}",
458+
" tween: ${2:Tween(),}",
459+
" builder: (BuildContext context, ${3:dynamic} value, Widget? child) {",
460+
" return ${4:Container();}",
461+
" },",
462+
"),"
463463
],
464464
"description": "Widget builder that animates a property of a Widget to a target value whenever the target value changes."
465465
},
466466
"Value Listenable Builder": {
467467
"prefix": "valueListenableBuilder",
468468
"body": [
469469
"ValueListenableBuilder(",
470-
" valueListenable: ${1: null},",
471-
" builder: (BuildContext context, ${2:dynamic} value, Widget? child) {",
472-
" return ${3: Container();}",
473-
" },",
474-
" ),"
470+
" valueListenable: ${1: null},",
471+
" builder: (BuildContext context, ${2:dynamic} value, Widget? child) {",
472+
" return ${3: Container();}",
473+
" },",
474+
"),"
475475
],
476476
"description": "Given a ValueListenable<T> and a builder which builds widgets from concrete values of T, this class will automatically register itself as a listener of the ValueListenable and call the builder with updated values when the value changes."
477477
},
478478
"Test": {
479479
"prefix": "f-test",
480480
"body": [
481481
"test(",
482-
" \"${1:test description}\",",
483-
" () {},",
482+
" \"${1:test description}\",",
483+
" () {},",
484484
");"
485485
],
486486
"description": "Create a test function"
@@ -489,8 +489,8 @@
489489
"prefix": "widgetTest",
490490
"body": [
491491
"testWidgets(",
492-
" \"${1:test description}\",",
493-
" (WidgetTester tester) async {},",
492+
" \"${1:test description}\",",
493+
" (WidgetTester tester) async {},",
494494
");"
495495
],
496496
"description": "Create a testWidgets function"

0 commit comments

Comments
 (0)