Skip to content

Commit 557a9b8

Browse files
committed
Added GrideView Notes
1 parent 96fb062 commit 557a9b8

File tree

1 file changed

+19
-0
lines changed
  • day_07_10_sliver_appbar_listview_gridview/lib

1 file changed

+19
-0
lines changed

day_07_10_sliver_appbar_listview_gridview/lib/main.dart

+19
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,22 @@ class MyApp extends StatelessWidget {
2020
);
2121
}
2222
}
23+
24+
/*
25+
-----------------------------------------
26+
How to implement GridView
27+
-----------------------------------------
28+
var arr_Images = [ image.network(), image.network(), image.network(), ]
29+
var delegateForGridView = SliverGridDelegateWithFixedCrossAxisCount( crossAxisCount:3, crossAxisSpacing:8.0, mainAxisSpacing:8.0)
30+
31+
Inside build method of Scaffold
32+
33+
Container(
34+
child : GridView(
35+
padding: EdgeInset.only(top:8.0),
36+
gridDelegate : delegateForGridView,
37+
children : arr_Images,
38+
)
39+
)
40+
-----------------------------------------
41+
*/

0 commit comments

Comments
 (0)