Answers for "how to change tab color in flutter"

0

how to change tab color in flutter

bottom: TabBar( indicatorColor: Colors.lime )
Posted by: Guest on September-19-2021
0

tab color in flutter

TabBar get _tabBar => TabBar(
  tabs: [
    Tab(icon: Icon(Icons.call)),
    Tab(icon: Icon(Icons.message)),
  ],
);
  
@override
Widget build(BuildContext context) {
  return DefaultTabController(
    length: 2,
    child: Scaffold(
      appBar: AppBar(
        title: Text('AppBar'),
        bottom: PreferredSize(
          preferredSize: _tabBar.preferredSize,
          child: ColoredBox(
            color: Colors.red,
            child: _tabBar,
          ),
        ),
      ),
    ),
  );
}
Posted by: Guest on September-19-2021

Code answers related to "how to change tab color in flutter"

Browse Popular Code Answers by Language