You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ Awesome Flutter Snippets is a collection of commonly used Flutter classes and me
21
21
|`customPainter`| Custom Painter | Used for creating custom paint |
22
22
|`listViewB`| ListView.Builder | 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. |
23
23
|`listViewS`| ListView.Separated | Creates a fixed-length scrollable linear array of list 'items' separated by list item 'separators'. |
24
+
|`gridViewB`| GridView.Builder | Creates a scrollable, 2D array of widgets that are created on demand. Providing a non-null `itemCount` improves the ability of the `GridView` to estimate the maximum scroll extent. |
25
+
| `gridViewC` | GridView.Count | Creates a scrollable, 2D array of widgets with a fixed number of tiles in the cross axis.
26
+
| `gridViewE` | GridView.Extent | Creates a scrollable, 2D array of widgets with tiles that each have a maximum cross-axis extent.
24
27
|`customScrollV`| Custom ScrollView | Creates a `ScrollView` that creates custom scroll effects using slivers. If the `primary` argument is true, the `controller` must be null. |
25
28
|`streamBldr`| Stream Builder | Creates a new `StreamBuilder` that builds itself based on the latest snapshot of interaction with the specified `stream`|
26
29
|`animatedBldr`| Animated Builder | Creates an Animated Builder. The widget specified to `child` is passed to the `builder`|
@@ -59,6 +62,11 @@ At this time, there are no known issues. If you discover a bug or would like to
" itemBuilder: (BuildContext context, int index) {",
170
+
" return ${3:};",
171
+
" },",
172
+
"),"
173
+
],
174
+
"description": "Creates a scrollable, 2D array of widgets that are created on demand. Providing a non-null `itemCount` improves the ability of the [GridView] to estimate the maximum scroll extent."
175
+
},
176
+
"GridView.Count": {
177
+
"prefix": "gridViewC",
178
+
"body": [
179
+
"GridView.count(",
180
+
" crossAxisSpacing: ${1:1},",
181
+
" mainAxisSpacing: ${2:2},",
182
+
" crossAxisCount: ${3:2},",
183
+
" children: <Widget> [",
184
+
" ${4:}",
185
+
" ],",
186
+
"),"
187
+
],
188
+
"description": "Creates a scrollable, 2D array of widgets with a fixed number of tiles in the cross axis."
189
+
},
190
+
"GridView.Extent": {
191
+
"prefix": "gridViewE",
192
+
"body": [
193
+
"GridView.extent(",
194
+
" maxCrossAxisExtent: ${1:2},",
195
+
" children: <Widget> [",
196
+
" ${2:}",
197
+
" ],",
198
+
"),"
199
+
],
200
+
"description": "Creates a scrollable, 2D array of widgets with tiles that each have a maximum cross-axis extent."
201
+
},
161
202
"Custom Scroll View": {
162
203
"prefix": "customScrollV",
163
204
"body": [
@@ -314,12 +355,12 @@
314
355
"description": "A source of asynchronous data events. A stream can be of any data type <T>"
315
356
},
316
357
"Subject": {
317
-
"prefix": "subj",
318
-
"body": [
319
-
"Stream<${1:type}> get ${2:name} => _${2:name}Subject.stream;",
320
-
"final _${2:name}Subject = BehaviorSubject<${1:type}>();"
321
-
],
322
-
"description": "A BehaviorSubject is also a broadcast StreamController which returns an Observable rather than a Stream."
358
+
"prefix": "subj",
359
+
"body": [
360
+
"Stream<${1:type}> get ${2:name} => _${2:name}Subject.stream;",
361
+
"final _${2:name}Subject = BehaviorSubject<${1:type}>();"
362
+
],
363
+
"description": "A BehaviorSubject is also a broadcast StreamController which returns an Observable rather than a Stream."
0 commit comments