Skip to content

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

License

Notifications You must be signed in to change notification settings

kresovic-milos/super_pager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published