onboard_er 0.1.0
onboard_er: ^0.1.0 copied to clipboard
A Flutter onboarding package using bloc.
πΊ onboard_er - A Flutter Onboarding Package #
π onboard_er is a modern and highly customizable Flutter onboarding package using Flutter BLoC and Lottie animations, designed to deliver an elegant and smooth onboarding experience.
(Replace with an actual demo GIF or screenshot!)
Pharrax Software #
π onboard_er is a clean and customizable Flutter onboarding package using Flutter BLoC and Lottie animations.
π― Features #
β
Supports Flutter BLoC for state management
β
Lottie animations for engaging onboarding
β
Customizable navigation buttons & indicators
β
Clean architecture for scalability
β
Lightweight and easy to integrate πΊ
π¦ Installation #
1οΈβ£ Install from GitHub #
Add this to your pubspec.yaml
:
dependencies:
onboard_er: [latest-version]
OR
2οΈβ£ Install from pub.flutter-io.cn (if published) #
flutter pub add onboard_er
π Usage #
1οΈβ£ Import the package #
import 'package:flutter/material.dart';
import 'package:onboard_er/onboard_er.dart';
2οΈβ£ Define Onboarding Pages #
final List<OnboardPageModel> onboardPages = [
OnboardPageModel(
title: "Welcome!",
description: "This is an amazing onboarding experience.",
animationUrl: "https://assets10.lottiefiles.com/packages/lf20_puciaact.json",
),
OnboardPageModel(
title: "Get Started",
description: "Swipe to learn more about the app.",
animationUrl: "https://assets10.lottiefiles.com/packages/lf20_rns6nqpy.json",
),
OnboardPageModel(
title: "You're Ready!",
description: "Let's start using the app now.",
animationUrl: "https://assets10.lottiefiles.com/packages/lf20_4qiz2d8z.json",
),
];
3οΈβ£ Use OnboardScreen
in Your App #
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: OnboardScreen(
pages: onboardPages,
onCompleted: () {
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => const HomeScreen()),
);
},
),
);
}
}
π¨ Customization #
You can customize colors, button styles, and more:
OnboardScreen(
pages: onboardPages,
onCompleted: () {
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => const HomeScreen()),
);
},
primaryColor: Colors.blue, // Customize button colors
secondaryColor: Colors.grey, // Customize indicator colors
backgroundColor: Colors.white, // Set background color
);
π€ Contributing #
Want to improve this package? πΊ Fork the repo, create a branch, make changes, and submit a PR.
# Clone the repo
git clone https://github.com/Developeryilmaz/onboard_er.git
cd onboard_er
# Create a new branch
git checkout -b feature-new-ui
# Make changes and commit
git add .
git commit -m "Added new button styles"
# Push and create a Pull Request
git push origin feature-new-ui
π License #
This package is available under the Pharrax Software - YILMAZ ER license.
Pharrax Software - YILMAZ ER
Permission is hereby granted, free of charge, to any person obtaining a copy of this software to deal in the Software without restriction...