gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
flutter. how to change tabBar indicator BACKGROUND color. not indicator color, but…
- User
flutter. how to change tabBar indicator BACKGROUND color. not indicator color, but background line going through all tabs?
- Assistant
You can change the background color of the tabBar indicator by setting the
indicatorproperty of theTabBarwidget to aBoxDecorationwith a coloredbackground.Here's an example:
TabBar( indicator: BoxDecoration( color: Colors.red, // set your desired background color here borderRadius: BorderRadius.circular(50), // to give rounded corners ), tabs: [ // your tabs ], ),