How to create a centered and equal sized tabs, Tab Bar in Flutter


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


  isScrollable: false,

              isScrollable: false,
              labelPadding: EdgeInsets.all(8.0),
                  TextStyle(fontSize: 16.0, fontWeight: FontWeight.w500),
              controller: _controller,

make : isScrollable : false,
now you will have the equal size tabs

Answered By – Tasnuva Tavasum oshin

Answer Checked By – Terry (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *