@@ -150,29 +150,6 @@ class _MyHomePageState extends State<MyHomePage>
150150 backgroundColor: Colors .tealAccent,
151151 centerTitle: true ,
152152 title: Text ("UI KIT" ),
153- // GFSegmentTabs(
154- // tabController: tabController,
155- // initialIndex: 0,
156- // length: 3,
157- // tabs: <Widget>[
158- // Tab(
159- // child: Text(
160- // "cream",
161- // ),
162- // ),
163- // Tab(
164- // child: Text(
165- // "serum",
166- // ),
167- // ),
168- // Tab(
169- // child: Text(
170- // "toner",
171- // ),
172- // ),
173- // ],
174- //// borderRadius: BorderRadius.circular(50.0),
175- // ),
176153// trailing: <Widget>[
177154// GFIconButton(icon: Icon(Icons.directions_bus), onPressed: null)
178155// ],
@@ -316,7 +293,7 @@ class _MyHomePageState extends State<MyHomePage>
316293// dividerHeight: 2.0,
317294// dividerIndent: 30.0,
318295// dividerThickness: 5.0,
319- // showDivider: false,
296+ showDivider: false ,
320297 ),
321298
322299 GFListTile (
@@ -370,15 +347,11 @@ class _MyHomePageState extends State<MyHomePage>
370347 GFCard (
371348 content: GFImageOverlay (
372349 height: 200.0 ,
373- width: MediaQuery .of (context).size.width,
374- child: Text ("Dcs" ),
375- // color: color ?? cardTheme.color ?? Theme.of(context).cardColor,
350+ width: 200.0 ,
376351 image: AssetImage ("lib/assets/food.jpeg" ),
377352 boxFit: BoxFit .fill,
378- colorFilter: new ColorFilter .mode (
379- Colors .black.withOpacity (0.67 ), BlendMode .darken),
380- // border: border,
381- // borderRadius: borderRadius ?? BorderRadius.all(Radius.circular(4.0)),
353+ colorFilter: new ColorFilter .mode (Colors .black.withOpacity (0.67 ), BlendMode .darken),
354+ shape: BoxShape .circle,
382355 ),
383356 ),
384357
@@ -506,10 +479,10 @@ class _MyHomePageState extends State<MyHomePage>
506479// radius: 80.0,
507480// backgroundImage: NetworkImage("https://cdn.pixabay.com/photo/2017/12/03/18/04/christmas-balls-2995437_960_720.jpg"),
508481// ),
509- //
482+
510483 GFSegmentTabs (
511484 tabController: tabController,
512- // height: 38 .0,
485+ // height: 36 .0,
513486// width: 180.0,
514487 initialIndex: 0 ,
515488 length: 3 ,
@@ -528,18 +501,20 @@ class _MyHomePageState extends State<MyHomePage>
528501 ),
529502 ),
530503 ],
531- // tabBarColor: Colors.pink.withOpacity(0.6),
532- // indicatorSize: TabBarIndicatorSize.tab,
533- // indicatorColor: Colors.tealAccent,
534- // indicator: BoxDecoration(
535- // color: Colors.pink,
536- // border: Border.all(color: Colors.green, width: 1.0),
537- // borderRadius: BorderRadius.circular(50.0)
538- // ),
539- // indicatorPadding: EdgeInsets.all(8.0),
540- // indicatorWeight: 2.0,
541- // border: Border.all(color: Colors.orange, width: 2.0),
542- // borderRadius: BorderRadius.circular(50.0)
504+ tabBarColor: Colors .grey,
505+ indicatorSize: TabBarIndicatorSize .tab,
506+ indicatorColor: Colors .greenAccent,
507+ labelColor: Colors .greenAccent,
508+ unselectedLabelColor: Colors .white,
509+ indicator: BoxDecoration (
510+ color: Colors .black,
511+ border: Border (bottom: BorderSide (color: Colors .greenAccent, width: 2.0 ,),),
512+ // borderRadius: BorderRadius.circular(2.0)
513+ ),
514+ indicatorPadding: EdgeInsets .all (8.0 ),
515+ indicatorWeight: 2.0 ,
516+ border: Border .all (color: Colors .white, width: 2.0 ),
517+ borderRadius: BorderRadius .circular (2.0 )
543518 ),
544519//
545520// GFTabBarView(
@@ -666,22 +641,22 @@ class _MyHomePageState extends State<MyHomePage>
666641// Icon(Icons.directions_transit),
667642// ],
668643// ),
669- //// indicatorColor: Colors.teal,
670- //// indicatorSize: TabBarIndicatorSize.label,
671- //// labelColor: Colors.lightGreen,
672- //// unselectedLabelColor: Colors.black,
673- //// labelStyle: TextStyle(
674- //// fontWeight: FontWeight.w500,
675- //// fontSize: 13.0,
676- //// color: Colors.deepOrange,
677- //// fontFamily: 'OpenSansBold',
678- //// ),
679- //// unselectedLabelStyle: TextStyle(
680- //// fontWeight: FontWeight.w500,
681- //// fontSize: 13.0,
682- //// color: Colors.black,
683- //// fontFamily: 'OpenSansBold',
684- //// ),
644+ // indicatorColor: Colors.teal,
645+ // indicatorSize: TabBarIndicatorSize.label,
646+ // labelColor: Colors.lightGreen,
647+ // unselectedLabelColor: Colors.black,
648+ // labelStyle: TextStyle(
649+ // fontWeight: FontWeight.w500,
650+ // fontSize: 13.0,
651+ // color: Colors.deepOrange,
652+ // fontFamily: 'OpenSansBold',
653+ // ),
654+ // unselectedLabelStyle: TextStyle(
655+ // fontWeight: FontWeight.w500,
656+ // fontSize: 13.0,
657+ // color: Colors.black,
658+ // fontFamily: 'OpenSansBold',
659+ // ),
685660// ),
686661//
687662// GFCarousel(
@@ -1005,6 +980,24 @@ class _MyHomePageState extends State<MyHomePage>
1005980 ),
1006981 ),
1007982 ],
983+ indicatorColor: Colors .teal,
984+ // indicatorSize: TabBarIndicatorSize.label,
985+ labelColor: Colors .lightGreen,
986+ labelPadding: EdgeInsets .all (8.0 ),
987+ tabBarColor: Colors .blueGrey,
988+ unselectedLabelColor: Colors .black,
989+ labelStyle: TextStyle (
990+ fontWeight: FontWeight .w500,
991+ fontSize: 13.0 ,
992+ color: Colors .deepOrange,
993+ fontFamily: 'OpenSansBold' ,
994+ ),
995+ unselectedLabelStyle: TextStyle (
996+ fontWeight: FontWeight .w500,
997+ fontSize: 13.0 ,
998+ color: Colors .black,
999+ fontFamily: 'OpenSansBold' ,
1000+ ),
10081001 ),
10091002 );
10101003 }
0 commit comments