Reputation: 85
Can the title of TabBar going to center of Tab?
Upvotes: 0
Views: 279
Reputation: 312
In your TabBar widget make set the isScrollable options to false
TabBar(
isScrollable: false, //set to false here
unselectedLabelColor: Colors.grey,
indicatorColor: Colors.black54,
tabs: <Tab>[
Tab(
text: "Feed",
),
Tab(
text: "Popular",
),
],
),
Upvotes: 1