luvvvdev / swiper_text_nav

Swiper text navigation package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navigation text bar for Swiper

Preview

Example

class Library extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return LibraryState();
  }
}

class LibraryState extends State<Library> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color.fromRGBO(34, 40, 49, 1.0),
      body: Container(
          padding: EdgeInsets.only(top: 30),
          child: Stack(
            children: <Widget>[
              Container(
                child: Swiper.children(
                  autoplay: false,
                  loop: false,
                  pagination:
                      PaginationTab(titles: ['Movies', 'Series', 'Cartoons']),
                  children: <Widget>[
                    Movies(),
                    Series(),
                    Cartoons(),
                  ],
                ),
              )
            ],
          )),
    );
  }
}

About

Swiper text navigation package.

License:MIT License


Languages

Language:Dart 100.0%