flutter_walkthrough

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

用法

示例

使用此包

  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小时内回复任何问题或请求。为了确保您的请求及时得到添加,请遵循以下基本规则:

  1. 匹配编码风格(花括号、空格等)。这可以通过 Android Studio 的 Reformat Code 功能最好地实现,在 Mac 上是 CMD+Option+L,在 Linux+Windows 上是 CTRL + ALT + L
  2. 如果是功能、bug修复或任何其他内容,请仅更改您指定的部分。
  3. 请保持 PR 标题易于阅读并准确描述更改,这将使它们更容易合并 :)
  4. Pull requests *必须*是针对develop分支进行的。任何其他分支(除非维护者另有说明)都将被拒绝。
  5. 在报告问题之前,请先检查是否存在 问题
  6. 请确保您遵循该存储库中所有其他项目遵循的标准。
  7. 玩得开心!

GitHub

https://github.com/iampawan/Flutter-Walkthrough