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 attributeDatatypeDescriptionDefault Value
childPageViewPageView to be wrapped.@required
onSkipVoidCallbackMethod executes on tapping done button.Null
showNextButtonBoolShow the Next button at the end of the indicator footer.true
defaultDotColorColorSet the indicator default dot color.Theme.of(context).primaryColor
currentDotColorColorSet the current step indicator dot color.Theme.of(context).primaryColorDark
buttonsColorColorSet the color of the Next and Skip buttons.Null
backgroundColorColorSet 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.

Libraries

constants
dot
indicator_widget
page_view_indicator
pager_state_provider
super_pager