tx_navibar 0.1.1 copy "tx_navibar: ^0.1.1" to clipboard
tx_navibar: ^0.1.1 copied to clipboard

outdated

A interesting bottom navi bar.

tx_navibar #

A interesting bottom navibar. example.gif

Run the example #

You can run this example like this ...

cd example
flutter create .
flutter run

How To Use #

Import the library in your pubspec.yaml as this.

tx_navibar: 0.1.1

It is very simple , you can use this package like ... .

_tabChange(int index, bool isChange) {
    print("index:$index--isChange:$isChange");
    if (isChange) {
      _controller.jumpToPage(index);
      _currentIndex = index;
      print("_currentIndex:$_currentIndex");
      setState(() {});
    }
  }
var bottomNaviBar = TXBottomNaviBar(
        tabChange: _tabChange,
        items: [
          BottomNaviItem(
              title: "Home",
              icon: "assets/home.png",
              backgroudColor: kHomeMainColor),
          BottomNaviItem(
              title: "Likes",
              icon: "assets/like.png",
              backgroudColor: kLikesMainColor),
          BottomNaviItem(
              title: "Search",
              icon: "assets/search.png",
              backgroudColor: kSearchMainColor),
          BottomNaviItem(
              title: "Profile",
              icon: "assets/person.png",
              backgroudColor: kProfileMainColor),
        ],
      );

Continue......

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

1
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A interesting bottom navi bar.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on tx_navibar