? Shuttlers 产品定制化故事包
一个用于在移动应用支付中添加故事的 Flutter 包。完全支持 Android 和 iOS。
? 屏幕截图
| Image | Image |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
? 安装
要使用此包,请将 shuttlers_stories 添加到 您的 pubspec.yaml 文件 的依赖项中。
import 'package:shuttlers_stories/shuttlers_stories.dart';
无需其他配置,该包开箱即用。
? 使用方法
1. 使用页面数据来展示自定义小部件
OutlinedButton.icon(
onPressed: () => StoriesView.instance.show(
context,
pages: [
Container(
color: Colors.red,
child: const Center(
child: Text("A"),
),
),
Container(
color: Colors.orange,
child: const Center(
child: Text("B"),
),
),
Container(
color: Colors.yellow,
child: const Center(
child: Text("C"),
),
),
Container(
color: Colors.green,
child: const Center(
child: Text("D"),
),
),
Container(
color: Colors.blue,
child: const Center(
child: Text("E"),
),
),
],
),å
icon: const Icon(Icons.pages),
label: const Text("Shuttlers stories"),
);
| Image | Image |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
? 运行示例项目
要开始使用 Flutter,请查看在线文档。
在此包中提供了一个 示例项目。克隆此存储库并导航到 example 文件夹。在支持的 IDE 中打开它,或在终端中从该文件夹执行 flutter run。
? 贡献、? 问题和 ? Bug 报告
该项目对内部贡献持开放态度。请随时贡献。遇到问题或想报告 Bug?请在此处 报告。请尽量详尽描述。









