super_pager 0.0.1 copy "super_pager: ^0.0.1" to clipboard
super_pager: ^0.0.1 copied to clipboard

discontinued

A new Flutter package project.

SuperPager is made to extend Flutter's PageView with some additional features.

Table of contents #

Features #

  • Page indicator.

  • Next button.

  • Skip button.

Getting Started #

You should ensure that you add the super_pager as a dependency in your flutter project.

dependencies:
  super_pager: '^0.0.1'

You should then run flutter packages get in your terminal so as to get the package.

Usage #

  • Just wrap your PageView widget with PageViewIndicator , and add some parameters.

    PageViewIndicator(
          child: PageView(children: _getPages()),
          onSkip: (ctx) => _navigateToOtherRoute(ctx),
          showNextButton: true,
          defaultDotColor: Colors.deepOrange,
          currentDotColor: Colors.pinkAccent,
          buttonsColor: Colors.lime,
          backgroundColor: Colors.blueGrey,
        )),
    

Documentation #

PageViewIndicator Class #

Dart attribute Datatype Description Default Value
child PageView PageView to be wrapped. @required
onSkip VoidCallback Method executes on tapping done button. Null
showNextButton Bool Show the Next button at the end of the indicator footer. true
defaultDotColor Color Set the indicator default dot color. Theme.of(context).primaryColor
currentDotColor Color Set the current step indicator dot color. Theme.of(context).primaryColorDark
buttonsColor Color Set the color of the Next and Skip buttons. Null
backgroundColor Color Set the color of the footer's background. Null

For help on editing package code, view the flutter documentation.

License #

SuperPager is licensed under MIT license.

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on super_pager