\n
TabBar(\n isScrollable: false,\n labelPadding: EdgeInsets.all(8.0),\n labelStyle:\n TextStyle(fontSize: 16.0, fontWeight: FontWeight.w500),\n labelColor: Colors.black,\n controller: _controller,\n)\n
\nmake : isScrollable : false,\nnow you will have the equal size tabs
\n","author":{"@type":"Person","name":"Tasnuva Tavasum oshin"},"upvoteCount":4}}}Reputation: 127
I want to create a Tab bar in which the size of the tabs are independent of the size of the screen, using the default tab bar creates a very long tab when running on a desktop, i want all the tabs to be the same size and be centered as if it were a Row
Upvotes: 4
Views: 739
Reputation: 4750
isScrollable: false,
TabBar(
isScrollable: false,
labelPadding: EdgeInsets.all(8.0),
labelStyle:
TextStyle(fontSize: 16.0, fontWeight: FontWeight.w500),
labelColor: Colors.black,
controller: _controller,
)
make : isScrollable : false, now you will have the equal size tabs
Upvotes: 4