Skip to content

fix: formatting, removed trailing whitespaces #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
" @override",
" Widget build(BuildContext context) {",
" return Container(",
" child: ${2:null},",
" child: ${2:null},",
" );",
" }",
"}"
Expand Down Expand Up @@ -80,7 +80,7 @@
"prefix": "initS",
"body": [
"@override",
"void initState() { ",
"void initState() {",
" super.initState();",
" ${0:}",
"}"
Expand All @@ -91,7 +91,7 @@
"prefix": "dis",
"body": [
"@override",
"void dispose() { ",
"void dispose() {",
" ${0:}",
" super.dispose();",
"}"
Expand Down Expand Up @@ -137,8 +137,8 @@
"ListView.builder(",
" itemCount: ${1:1},",
" itemBuilder: (BuildContext context, int index) {",
" return ${2:};",
" },",
" return ${2:};",
" },",
"),"
],
"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."
Expand All @@ -149,11 +149,11 @@
"ListView.separated(",
" itemCount: ${1:1},",
" separatorBuilder: (BuildContext context, int index) {",
" return ${2:};",
" },",
" return ${2:};",
" },",
" itemBuilder: (BuildContext context, int index) {",
" return ${3:};",
" },",
" return ${3:};",
" },",
"),"
],
"description": "Creates a fixed-length scrollable linear array of list 'items' separated by list item 'separators'."
Expand Down Expand Up @@ -204,7 +204,7 @@
"body": [
"CustomScrollView(",
" slivers: <Widget>[",
" ${0:}",
" ${0:}",
" ],",
"),"
],
Expand Down Expand Up @@ -236,7 +236,7 @@
" },",
"),"
],
"description": "Creates an Animated Builder. The widget specified to `child` is passed to the `builder` "
"description": "Creates an Animated Builder. The widget specified to `child` is passed to the `builder`"
},
"Stateful Builder": {
"prefix": "statefulBldr",
Expand Down Expand Up @@ -367,8 +367,8 @@
"body": [
"@override",
"String toString() {",
"return ${1:toString};",
" }"
" return ${1:toString};",
"}"
],
"description": "Returns a string representation of this object."
},
Expand Down Expand Up @@ -399,9 +399,9 @@
"description": "Create a MaterialApp",
"body": [
"import 'package:flutter/material.dart';",
" ",
"",
"void main() => runApp(MyApp());",
" ",
"",
"class MyApp extends StatelessWidget {",
" @override",
" Widget build(BuildContext context) {",
Expand All @@ -427,9 +427,9 @@
"description": "Create a CupertinoApp",
"body": [
"import 'package:flutter/cupertino.dart';",
" ",
"",
"void main() => runApp(MyApp());",
" ",
"",
"class MyApp extends StatelessWidget {",
" @override",
" Widget build(BuildContext context) {",
Expand All @@ -454,33 +454,33 @@
"prefix": "tweenAnimationBuilder",
"body": [
"TweenAnimationBuilder(",
" duration: ${1:const Duration(),}",
" tween: ${2:Tween(),}",
" builder: (BuildContext context, ${3:dynamic} value, Widget? child) {",
" return ${4:Container();}",
" },",
" ), "
" duration: ${1:const Duration(),}",
" tween: ${2:Tween(),}",
" builder: (BuildContext context, ${3:dynamic} value, Widget? child) {",
" return ${4:Container();}",
" },",
"),"
],
"description": "Widget builder that animates a property of a Widget to a target value whenever the target value changes."
},
"Value Listenable Builder": {
"prefix": "valueListenableBuilder",
"body": [
"ValueListenableBuilder(",
" valueListenable: ${1: null},",
" builder: (BuildContext context, ${2:dynamic} value, Widget? child) {",
" return ${3: Container();}",
" },",
" ),"
" valueListenable: ${1: null},",
" builder: (BuildContext context, ${2:dynamic} value, Widget? child) {",
" return ${3: Container();}",
" },",
"),"
],
"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."
},
"Test": {
"prefix": "f-test",
"body": [
"test(",
" \"${1:test description}\",",
" () {},",
" \"${1:test description}\",",
" () {},",
");"
],
"description": "Create a test function"
Expand All @@ -489,8 +489,8 @@
"prefix": "widgetTest",
"body": [
"testWidgets(",
" \"${1:test description}\",",
" (WidgetTester tester) async {},",
" \"${1:test description}\",",
" (WidgetTester tester) async {},",
");"
],
"description": "Create a testWidgets function"
Expand Down