flutter_walkthrough
A new Flutter package for both android and iOS which helps developers in creating animated walkthrough of their app.


用法
使用此包
- 将依赖项添加到您的 pubspec.yaml 文件。
dependencies:
flutter:
sdk: flutter
flutter_walkthrough:
如何使用
class TestScreen extends StatelessWidget {
/*here we have a list of walkthroughs which we want to have,
each walkthrough have a title,content and an icon.
*/
final List<Walkthrough> list = [
Walkthrough(
title: "Title 1",
content: "Content 1",
imageIcon: Icons.restaurant_menu,
),
Walkthrough(
title: "Title 2",
content: "Content 2",
imageIcon: Icons.search,
),
Walkthrough(
title: "Title 3",
content: "Content 3",
imageIcon: Icons.shopping_cart,
),
Walkthrough(
title: "Title 4",
content: "Content 4",
imageIcon: Icons.verified_user,
),
];
@override
Widget build(BuildContext context) {
//here we need to pass the list and the route for the next page to be opened after this.
return new IntroScreen(
list,
new MaterialPageRoute(builder: (context) => new TestScreen()),
);
}
}
Pull Requests
我欢迎并鼓励所有Pull Requests。通常我会在24-48小时内回复任何问题或请求。为了确保您的请求及时得到添加,请遵循以下基本规则:
- 匹配编码风格(花括号、空格等)。这最好通过 Android Studio 的
Reformat Code功能实现,在 Mac 上是CMD+Option+L,在 Linux/Windows 上是CTRL+ALT+L。 - 如果是功能、bug修复或任何其他内容,请仅更改您指定的部分。
- 请保持 PR 标题易于阅读并准确描述更改,这将使它们更容易合并 :)
- Pull requests *必须*是针对
develop分支进行的。任何其他分支(除非维护者另有说明)都将被拒绝。 - 在提交 issue 之前,请先检查是否存在现有的 issue。
- 请确保您遵循该存储库中所有其他项目遵循的标准。
- 玩得开心!