Ask Your Question
1

How can I eliminate the border at the bottom of the Flutter TabBar?

asked 2023-05-14 13:45:54 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-14 14:06:02 +0000

qstack gravatar image

To eliminate the border at the bottom of the Flutter TabBar, you can set the TabBar's border property to Border(bottom: BorderSide.none) like this:

TabBar(
  tabs: [
    Tab(text: 'Tab 1'),
    Tab(text: 'Tab 2'),
  ],
  border: Border(bottom: BorderSide.none),
),

This sets the bottom border to none, effectively removing it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-14 13:45:54 +0000

Seen: 11 times

Last updated: May 14 '23