limcheekin / fluwix

Fluwix: A Flutter showcase platform on the mobile apps and web.

Home Page:https://fluwix.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For Wide Layout, add icon to tabs

limcheekin opened this issue · comments

https://o7planning.org/12865/flutter-tabbar

TabBar(
  tabs: [
    Row (children: [Icon(Icons.directions_car), SizedBox(width:5), Text("Car")]),
    Row (children: [Icon(Icons.directions_transit), SizedBox(width:5), Text("Transit")]),
    Row (children: [Icon(Icons.directions_bike), SizedBox(width:5), Text("Bike")]),
  ],
  labelColor: Colors.white,
  unselectedLabelColor: Colors.cyanAccent,
);