Answers for "flutter tab text color"

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
0

change color icon tabbar flutter

appBar: AppBar(
        brightness: Brightness.dark,
        iconTheme: IconThemeData(color: Colors.white),
        title: Text("Title TabBar"),
)
Posted by: Guest on June-02-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language