@@ -169,6 +169,18 @@ class _MyHomePageState extends State<MyHomePage>
169169// 'Tab1',
170170// ),
171171// ],
172+ // labelStyle: TextStyle(
173+ // fontWeight: FontWeight.w900,
174+ // fontSize: 19,
175+ // color: Colors.deepOrange,
176+ // fontFamily: 'OpenSansBold',
177+ // ),
178+ // unselectedLabelStyle: TextStyle(
179+ // fontWeight: FontWeight.w500,
180+ // fontSize: 13,
181+ // color: Colors.black,
182+ // fontFamily: 'OpenSansBold',
183+ // ),
172184// ),
173185// searchBar: true,
174186// searchHintText: "aaaaaaa",
@@ -827,8 +839,16 @@ class _MyHomePageState extends State<MyHomePage>
827839 ],
828840 indicatorColor: Colors .teal,
829841 border: Border .all (color: Colors .teal),
830- unselectedLabelStyle: TextStyle (color: Colors .teal),
831- labelStyle: TextStyle (color: Colors .teal),
842+ labelColor: Colors .white,
843+ unselectedLabelColor: Colors .teal,
844+ labelStyle: TextStyle (
845+ fontWeight: FontWeight .w500,
846+ fontSize: 14 ,
847+ ),
848+ unselectedLabelStyle: TextStyle (
849+ fontWeight: FontWeight .w400,
850+ fontSize: 12 ,
851+ ),
832852 ),
833853//
834854// GFTabBarView(controller: tabController, children: <Widget>[
@@ -1246,49 +1266,46 @@ class _MyHomePageState extends State<MyHomePage>
12461266 ],
12471267 ),
12481268 ),
1249- bottomNavigationBar: GFTabBar (
1250- initialIndex: 0 ,
1251- length: 3 ,
1252- controller: tabController,
1253- tabs: const [
1254- Text (
1255- 'Tab1' ,
1256- ),
1257- Tab (
1258- icon: Icon (Icons .directions_bus),
1259- child: Text (
1260- 'Tab2' ,
1261- ),
1262- ),
1263- Tab (
1264- icon: Icon (Icons .directions_railway),
1265- child: Text (
1266- 'Tab3' ,
1267- ),
1268- ),
1269- ],
1270- shape: RoundedRectangleBorder (
1271- borderRadius: BorderRadius .only (
1272- topLeft: Radius .circular (24.0 ),
1273- topRight: Radius .circular (24.0 ))),
1274- // indicatorColor: Colors.white,
1269+ // bottomNavigationBar: GFTabBar(
1270+ // initialIndex: 0,
1271+ // length: 3,
1272+ // controller: tabController,
1273+ // tabs: const [
1274+ // Text(
1275+ // 'Tab1',
1276+ // ),
1277+ // Text(
1278+ // 'Tab2',
1279+ // ),
1280+ // Tab(
1281+ // icon: Icon(Icons.directions_railway),
1282+ // child: Text(
1283+ // 'Tab3',
1284+ // ),
1285+ // ),
1286+ // ],
1287+ // shape: RoundedRectangleBorder(
1288+ // borderRadius: BorderRadius.only(
1289+ // topLeft: Radius.circular(24.0),
1290+ // topRight: Radius.circular(24.0))),
1291+ //// indicatorColor: Colors.white,
12751292// indicatorSize: TabBarIndicatorSize.label,
1276- // labelColor: Colors.lightGreen,
1277- // labelPadding: EdgeInsets.all(8.0),
1278- // tabBarColor: Colors.blueGrey,
1279- // unselectedLabelColor: Colors.black,
1280- labelStyle: TextStyle (
1281- fontWeight: FontWeight .w500,
1282- fontSize: 13.0 ,
1283- color: Colors .deepOrange,
1284- fontFamily: 'OpenSansBold' ,
1285- ),
1286- unselectedLabelStyle: TextStyle (
1287- fontWeight: FontWeight .w500,
1288- fontSize: 13.0 ,
1289- color: Colors .black,
1290- fontFamily: 'OpenSansBold' ,
1291- ),
1292- ),
1293+ //// labelColor: Colors.lightGreen,
1294+ //// labelPadding: EdgeInsets.all(8.0),
1295+ //// tabBarColor: Colors.blueGrey,
1296+ //// unselectedLabelColor: Colors.black,
1297+ // labelStyle: TextStyle(
1298+ // fontWeight: FontWeight.w500,
1299+ // fontSize: 13,
1300+ // color: Colors.deepOrange,
1301+ // fontFamily: 'OpenSansBold',
1302+ // ),
1303+ // unselectedLabelStyle: TextStyle(
1304+ // fontWeight: FontWeight.w500,
1305+ // fontSize: 13,
1306+ // color: Colors.black,
1307+ // fontFamily: 'OpenSansBold',
1308+ // ),
1309+ // ),
12931310 );
12941311}
0 commit comments