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
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Awesome Flutter Snippets is a collection of commonly used Flutter classes and me
20
20
|`customClipper`| Custom Clipper | Used for creating custom shapes |
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
+
|`listViewS`| ListView.Separated | Creates a fixed-length scrollable linear array of list 'items' separated by list item 'separators'. |
23
24
|`customScrollV`| Custom ScrollView | Creates a `ScrollView` that creates custom scroll effects using slivers. If the `primary` argument is true, the `controller` must be null. |
24
25
|`streamBldr`| Stream Builder | Creates a new `StreamBuilder` that builds itself based on the latest snapshot of interaction with the specified `stream`|
25
26
|`animatedBldr`| Animated Builder | Creates an Animated Builder. The widget specified to `child` is passed to the `builder`|
Copy file name to clipboardExpand all lines: snippets/snippets.json
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,21 @@
143
143
],
144
144
"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."
145
145
},
146
+
"ListView.Separated": {
147
+
"prefix": "listViewS",
148
+
"body": [
149
+
"ListView.separated(",
150
+
" itemCount: ${1:1},",
151
+
" separatorBuilder: (BuildContext context, int index) {",
152
+
" return ${2:};",
153
+
" },",
154
+
" itemBuilder: (BuildContext context, int index) {",
155
+
" return ${3:};",
156
+
" },",
157
+
"),"
158
+
],
159
+
"description": "Creates a fixed-length scrollable linear array of list 'items' separated by list item 'separators'."
0 commit comments