Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.34 KB

README.md

File metadata and controls

61 lines (46 loc) · 1.34 KB

Motion Tab Bar

A beautiful animated widget for your Flutter apps

| Preview | |---------|----------| |MotionTabBar Gif |

Getting Started

Add the plugin:

dependencies:
  motion_tab_bar: ^0.1.2

Basic Usage

Adding the widget

   MotionTabController _tabController;
  @override
  void initState() {
    super.initState();
    _tabController = new MotionTabController(initialIndex:1,vsync: this);
  }

  @override
  void dispose() {
    super.dispose();
    _tabController.dispose();
  }
  

 bottomNavigationBar: MotionTabBar(
        tabOneName: "Home",
        tabTwoName: "Search",
        tabThreeName: "Account",
        tabOneIcon: Icons.home,
        tabTwoIcon: Icons.search,
        tabThreeIcon: Icons.account_box,
        tabIconColor: Colors.green,
        tabSelectedColor: Colors.red,
        textStyle: TextStyle(color: Colors.red),
        initialSelectedTab: 1,
        onTabItemSelected: (int value){
          print(value);
          setState(() {
            _tabController.index = value;
          });
        },
    )

Catch me up on LinkedIn @Rezaul Islam

💙 to Code👨🏽‍💻 Flutter Expert • Dart Kotlin Swift Node Js • Android • Full Stack Mobile Developer