Search
 
SCRIPT & CODE EXAMPLE
 

DART

how to change tab color in flutter

bottom: TabBar( indicatorColor: Colors.lime )
Comment

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,
          ),
        ),
      ),
    ),
  );
}
Comment

PREVIOUS NEXT
Code Example
Dart :: how to iterate object in dart 
Dart :: Wraps Text Flutter 
Dart :: how to groupby list of maps in flutter 
Dart :: proportion in flutter 
Dart :: how to center widgets in using scrollview flutter 
Dart :: flutter force soft keyboard on widget 
Dart :: flutter pop to index 1 
Dart :: how to perform a text search over json data in flutter 
Dart :: allow background service in flutter app 
Dart :: icons flutter to put a right 
Dart :: dart rob cross axis align not work 
Dart :: flutter colour hex 
Swift :: swift ui open link in browser 
Swift :: swift change button text 
Swift :: swift has Top Notch 
Swift :: swift firebase read key in autoKey 
Swift :: swift collection view cell size 
Swift :: swift get a rectangle centered 
Swift :: white or light ASAuthorizationAppleIDButton “Sign in with Apple” button - Swift 
Swift :: Fetch class from userdefaults ios swift 
Swift :: swift test if simulator 
Swift :: swiftui console log 
Swift :: and in swif 
Swift :: swift 5 get current date date 
Swift :: swiftui textfield height 
Swift :: swift uitextfield placeholder color 
Swift :: swift scrollview auto fit content height 
Swift :: uilabel set fon siz 
Swift :: Swift Bitwise AND Operator 
Swift :: polymorphism in swift 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =