imdsk
imdsk

Reputation: 85

can titles of tabBar not centered?

Can the title of TabBar going to center of Tab? enter image description here

Upvotes: 0

Views: 279

Answers (1)

Becca
Becca

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

Related Questions