Flutter Onboard Package
Features
Easy customization your own style
Getting started
Add the package to your pubspec.yaml file
flutter pub add flutter_easy_onboarding
in your dart file, import the library
import 'package/flutter_easy_onboarding/flutter_easy_onboarding';
Usage
import 'package:flutter/material.dart';
import 'package:flutter_easy_onboarding/flutter_easy_onboarding.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
var number = "";
return MaterialApp(
home: Scaffold(
body: OnBoarding(
numberOfPages: 3,
currentPage: 1,
doneButton: () {
},
title: "Test",
body: "Test Body",
image: "logo" // images can be added to assets in pubspec.yaml and only .png files
)
),
);
}
}
Parameters
indicatorActiveColor
it shows which page can be hold to highlight, wish you change the active
color use the parameter
indiacatorDeActiveColor
it shows which page can be not selected to highlight, wish you change the
active color use the parameter