FancyOnBoarding
Fancy OnBoarding Screen Library.
? Installation
In the dependencies:
section of your pubspec.yaml
, add the following line:
fancy_on_boarding: <latest_version>
❔ Usage
Import this class
Create a List of PageModel
Pass it into the FancyOnBoarding widget
? Customization and Attributes
FancyOnBoarding attributes
Attribute Name | Example Value | Description |
---|---|---|
pageList | List<PageModel> | The list of pages to be displayed |
onDoneButtonPressed | (){} | Function to be called on pressing done button |
onSkipButtonPressed | (){} | Function to be called on pressing skip button |
doneButtonText | "Let's Go" | Done button text content defaults to "Done" |
skipButtonText | "Skip" | Skip button text content defaults to "Skip" |
showSkipButton | true | Skip button should be visible or not. Defaults to true |
bottomMargin | 8.0 | Indicator bottom margin. Defaults to 8.0 |
doneButton | Button(onPressed:(){},child:Text('Done')) | Custom DoneButton. Will replace default doneButton if provided |
skipButton | Button(onPressed:(){},child:Text('Skip')) | Custom SkipButton. Will replace default doneButton if provided |
PageModel attributes
Attribute Name | Example Value | Description |
---|---|---|
color | Color(0xFF65B0B4) | The background color of the page |
heroAssetPath | 'assets/banks.png' | The main onboarding image |
heroAssetColor | Color(0xFF65B0B4) | Main onboarding image color |
title | Text('Banks') | Title of the page |
body | Text('We carefully verify all banks before adding them into the app') | Body of the page |
iconAssetPath | 'assets/wallet.png' | Icon for the floating bubble |
icon | Icon(Icons.shopping_cart) | Icon for the floating bubble, Will replace 'iconAssetPath' if provided |