该软件包提供轻松创建引导页面。
特点
您可以编辑颜色和文本样式。
| 图片1 | 图片2 | GIF |
|---|---|---|
![]() |
![]() |
![]() |
入门
在您的 pubspec.yaml 文件中添加最新版本的 onboarding_plus
用法
在 body 中调用此小部件:OnboardingView()
@override
Widget build(BuildContext context) {
return Scaffold(
body: OnboardingView(
pageList: onboardingList,
pageWidth: MediaQuery.of(context).size.width, //context.width,
pageHeight: MediaQuery.of(context).size.height, //context.height,
backgroundColor: Colors.black,
skipButtonColor: Colors.purple,
skipButtonTextStyle: const TextStyle(color: Colors.white),
nextButtonTextStyle: const TextStyle(color: Colors.white),
doneButtonTextStyle: const TextStyle(color: Colors.white),
deactiveDotColor: Colors.grey,
activatedDotColor: Colors.purple,
nextButtonColor: Colors.purple,
onPressedSkip: onPressedSkip,
onPressedDone: onPressedDone,
));
}
附加信息
有关更多信息,您可以在 pub.dev 上关注开发者


