Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 557a9b8

Browse files
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‎

Lines changed: 19 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /