kumar-aakash86 / flutter_overboard Goto Github PK
View Code? Open in Web Editor NEWOnboarding widget for flutter to create beautiful onboarding slides with minimal code.
License: MIT License
Onboarding widget for flutter to create beautiful onboarding slides with minimal code.
License: MIT License
On a Galaxy A71 the buttons are hidden behind the system navigation bar
Example code:
class OnboardingScreen extends StatefulWidget {
const OnboardingScreen({Key? key}) : super(key: key);
@override
_OnboardingScreenState createState() => _OnboardingScreenState();
}
class _OnboardingScreenState extends State<OnboardingScreen> {
final GlobalKey<ScaffoldState> _globalKey = GlobalKey<ScaffoldState>();
@override
Widget build(BuildContext context) {
AppLocalizationsData labels =
Localizations.of(context, AppLocalizationsData);
final pages = [
PageModel(
color: Theme.of(context).primaryColor,
imageAssetPath: 'path',
title: 'Title',
body: 'Body',
doAnimateImage: true),
PageModel(
color: Theme.of(context).colorScheme.secondary,
imageAssetPath: 'path',
title: 'Title',
body: 'Body',
doAnimateImage: true),
PageModel(
color: Theme.of(context).primaryColor,
imageAssetPath: 'path',
title: 'Title',
body: 'Body',
doAnimateImage: true)
];
return Scaffold(
key: _globalKey,
body: OverBoard(
pages: pages,
showBullets: true,
skipCallback: _goToHome,
finishCallback: _goToHome,
finishText: 'Finish',
nextText: 'Next',
skipText: 'Skip',
),
);
}
void _goToHome() {
SharedPreferences.getInstance()
.then((prefs) => prefs.setBool(Constants.keyOnboardingDone, true));
Navigator.pushReplacementNamed(context, Routes.home);
}
I was sadly not able to identify if it is an A71-only issue or if other platforms are affected as well, nor where the issue comes from. As a workaround, I would suggest the option of an offset for the buttons.
Switching screens in Overboard works perfectly on mobile, via a simple swipe left or right.
On laptops, however, the standard way to switch would be scrolling to switch, which Overboard doesn't support yet.
It would be great if one could switch screens by scrolling horizontally on laptops.
Allow us to customize the color of the title and body
Is it possible to have customize color where I'hv a white background?
Is there a way to easily change the color of the navigation if we put a white background color ?
As per the title; are there any plans to support null safety?
Hello,
I am Maheshwari from team GeekyAnts. On behalf of Start Flutter, we add open source products which we find helpful to the community & also we provide credits to author itself.
Let me know if you are interested showcase your product in our open source website.
If yes, then I request you to add MIT Licence in your repo.
Looking forward to hear from you.
Can the text of the "body" be taken from a URL or at least accept marked-up text, lastly scrollable?
i want to make image.network as a child to be full screen behind buttons
It would be awesome to be able to define the text of the buttons in order to localize them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.