首页 > 解决方案 > 如何为 Flutter 应用添加首次启动视觉帮助?

问题描述

我不知道通常在移动应用程序首次启动时显示的交互式视觉指南的名称是什么,如何将其添加到我的 Flutter 应用程序中?谢谢

标签: flutter

解决方案


请使用这个包https://github.com/pyozer/introduction_screen

代码片段

IntroductionScreen(
  pages: listPagesViewModel,
  onDone: () {
    // When done button is press
  },
  onSkip: () {
    // You can also override onSkip callback
  },
  showSkipButton: true,
  skip: const Icon(Icons.skip_next),
  next: const Icon(Icons.next),
  done: const Text("Done", style: TextStyle(fontWeight: FontWeight.w600))
);

在此处输入图像描述


推荐阅读