A library that walks a user through multiple on-boarding screens in a simple and easy way
You just need to add sk_onboarding_screen
as a dependency in your pubspec.yaml file.
dependencies:
sk_onboarding_screen: ^1.0.1
import 'package:sk_onboarding_screen/sk_onboarding_screen.dart;
final pages = [
SkOnboardingModel(
title: 'Choose your item',
description:
'Easily find your grocery items and you will get delivery in wide range',
titleColor: Colors.black,
descripColor: const Color(0xFF929794),
imagePath: 'assets/onboarding1.png'),
SkOnboardingModel(
title: 'Pick Up or Delivery',
description:
'We make ordering fast, simple and free-no matter if you order online or cash',
titleColor: Colors.black,
descripColor: const Color(0xFF929794),
imagePath: 'assets/onboarding2.png'),
SkOnboardingModel(
title: 'Pay quick and easy',
description: 'Pay for order using credit or debit card',
titleColor: Colors.black,
descripColor: const Color(0xFF929794),
imagePath: 'assets/onboarding3.png'),
];
@override
Widget build(BuildContext context) {
// TODO: implement build
return Scaffold(
body: SKOnboardingScreen(
bgColor: Colors.white,
themeColor: const Color(0xFFf74269),
pages: pages,
skipClicked: (value) {
print("Skip");
},
getStartedClicked: (value) {
print("Get Started");
},
),
);
}