Ángel Talero
Ángel Talero

Reputation: 127

How to disable hover decoration in Flutter TabBar

Description

I want to disable that gray box that is shown when the mouse is over the tab

Upvotes: 1

Views: 1017

Answers (1)

Md. Yeasin Sheikh
Md. Yeasin Sheikh

Reputation: 63614

You can use overlayColor property to change hover color. For your case,

bottom: TabBar(
  overlayColor: MaterialStateProperty.all(Colors.transparent),

More about overlayColor.

Upvotes: 6

Related Questions