Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

A beautiful animated flutter widget package library

Info: A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.

Motion Tab Bar

A beautiful animated widget for your Flutter apps

| Preview | |———|———-| | |

Getting Started

Add the plugin:

dependencies:
  motion_tab_bar: ^0.0.1

Basic Usage

Adding the widget

   MotionTabController _tabController;
  @override
  void initState() {
    super.initState();
    _tabController = new MotionTabController(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),
        onTabItemSelected: (int value){
          print(value);
          setState(() {
            _tabController.index = value;
          });
        },
    )

Download Motion Tab Bar source code on GitHub

https://github.com/therezacuet/Motion-Tab-Bar

Exit mobile version