fancy_onboarding_screen 1.0.1
fancy_onboarding_screen: ^1.0.1 copied to clipboard
The Flutter package offers an customizable solution for creating onboarding screens with ease. Develop visually appealing, engaging user onboarding experiences, perfect for showcasing your app's featu [...]
example/lib/main.dart
import 'package:fancy_onboarding_screen/fancy_onboarding_screen.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter OnBoarding Screen Example',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter OnBoarding Screen Example'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(body: FancyOnBoardingScreen(onBtnTap: () {})));
}
}