@@ -45,47 +45,49 @@ class _IndexState extends State<Index> {
4545 );
4646 },
4747 body: Container (
48- decoration: BoxDecoration (
49- color: Color (AppTheme .thirdColor),
50- ),
51- // padding: EdgeInsets.all(10),
5248 child: GridView .count (
49+ childAspectRatio: 1.3 ,
50+ padding: EdgeInsets .fromLTRB (4 , 0 , 4 , 0 ),
5351 shrinkWrap: true ,
5452 physics: ScrollPhysics (),
5553 crossAxisCount: 3 ,
56- // crossAxisSpacing: 10,
57- // mainAxisSpacing: 10,
58- children: List .generate (_tmpWidgetList.length, (index) {
59- return FlatButton (
60- color: Color (AppTheme .secondColor),
61- splashColor: Color (AppTheme .mainColor),
62- child: Column (
63- crossAxisAlignment: CrossAxisAlignment .center,
64- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
65- children: [
66- Icon (
67- IconData (
68- _tmpWidgetList[index].code,
69- fontFamily: 'MaterialIcons' ,
70- matchTextDirection: true ,
54+ children: List .generate (
55+ _tmpWidgetList.length,
56+ (index) {
57+ return FlatButton (
58+ color: Color (AppTheme .secondColor),
59+ splashColor: Color (AppTheme .mainColor),
60+ child: Column (
61+ crossAxisAlignment: CrossAxisAlignment .center,
62+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
63+ children: [
64+ Icon (
65+ IconData (
66+ _tmpWidgetList[index].code,
67+ fontFamily: 'MaterialIcons' ,
68+ matchTextDirection: true ,
69+ ),
70+ color: Color (AppTheme .mainColor),
71+ size: 32 ,
7172 ),
72- color: Color (AppTheme .mainColor),
73- size: 48 ,
74- ),
75- Text (
76- '${_tmpWidgetList [index ].title }' ,
77- overflow: TextOverflow .ellipsis,
78- )
79- ],
80- ),
81- onPressed: () {
82- FluroRouter .router.navigateTo (
83- context,
84- nameSpaces + _tmpWidgetList[index].title,
85- );
86- },
87- );
88- }),
73+ Text (
74+ '${_tmpWidgetList [index ].title }' ,
75+ overflow: TextOverflow .ellipsis,
76+ style: TextStyle (
77+ fontSize: 16 ,
78+ ),
79+ )
80+ ],
81+ ),
82+ onPressed: () {
83+ FluroRouter .router.navigateTo (
84+ context,
85+ nameSpaces + _tmpWidgetList[index].title,
86+ );
87+ },
88+ );
89+ },
90+ ),
8991 ),
9092 ),
9193 isExpanded: _isExpandedIndex == index,
0 commit comments