Bacancy Technology
Bacancy Technology represents the connected world, offering innovative and customer-centric information technology experiences, enabling Enterprises, Associates and the Society to Riseâ„¢.
12+
Countries where we have happy customers
1050+
Agile enabled employees
06
World wide offices
12+
Years of Experience
05
Agile Coaches
14
Certified Scrum Masters
1000+
Clients projects
1458
Happy customers
Artificial Intelligence
Machine Learning
Salesforce
Microsoft
SAP
November 15, 2024
class HomePage extends StatelessWidget { const HomePage({super.key}); @override Widget build(BuildContext context) { return DefaultTabController( length: 3, child: Scaffold( appBar: AppBar( title: const Text("TabBar Background Color"), /// Only change the AppBar background color backgroundColor: Colors.blue, bottom: PreferredSize( preferredSize: const Size.fromHeight(48.0), child: Container( color: Colors.green, /// Set the TabBar background color child: const TabBar( labelColor: Colors.white, unselectedLabelColor: Colors.black, indicatorColor: Colors.yellow, /// Set indicator color if needed tabs: [ Tab(text: "Tab 1"), Tab(text: "Tab 2"), Tab(text: "Tab 3"), ], ), ), ), ), body: const TabBarView( children: [ Center(child: Text("Tab 1 Content")), Center(child: Text("Tab 2 Content")), Center(child: Text("Tab 3 Content")), ], ), ), ); } }