搜索插件、代码仓与 APP 分类

cupertino_onboarding 封面
插件详情v1.3.0

cupertino_onboarding

提供 iOS 风格引导体验的 Flutter 包。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
954
喜欢数
195
Pub 分数
150

安装插件

flutter pub add cupertino_onboarding

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,提供 iOS 风格的引导体验,具有流畅的过渡效果和原生般的动画。该包旨在模仿 Apple 的引导界面,为介绍应用功能提供简洁现代的轮播图。支持 Android、iOS、Web、macOS、Windows 和 Linux 等多个平台,确保跨设备的一致用户体验。可通过 pub add 轻松集成,非常适合追求精致、平台化外观的应用。可自定义内容和滑动手势,提升用户参与度。

适合场景

  • 应用入门教程
  • 功能介绍屏幕
  • 用户入门流程
  • 以移动设备为先的应用程序发布
  • 跨平台入门体验

主要特点

  • iOS 风格设计
  • 流畅的滑动动画
  • 多平台支持
  • 可自定义内容
  • 通过 pub 轻松集成
  • 响应式布局

适合对象

  • iOS风格的应用程序设计
  • 跨平台移动应用
  • 以入门为重点的应用程序
  • 寻求原生界面的开发者
  • 面向现代美学的应用程序

使用建议

  • 超出iOS主题的定制功能有限
  • 可能需要额外的样式设置以适应非iOS品牌
  • 依赖于Cupertino组件以获得外观
  • 不适用于非滑动式引导
  • 最适合简单的线性引导流程

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

cupertino_onboarding

style: very good analysis pub.dev badge GitHub build status codecov License: MIT

Flutter package that provides a beautiful, iOS-like, easy onboarding experience with minimal code.

It's designed to easily showcase your app's features and provide a simple way for users to learn about your app.

onboarding example calendar example translator example

Getting Started

Add the package to your pubspec.yaml file:

cupertino_onboarding: ^1.2.0

Import the library:

import 'package:cupertino_onboarding/cupertino_onboarding.dart';

Create CupertinoOnboarding widget and pass your pages as parameter:

@override
Widget build(BuildContext context) {
  return CupertinoOnboarding(
    onPressedOnLastPage: () => Navigator.pop(context),
    pages: [
      // To create What's New page like Calendar or Translator
      // examples in the readme, use `WhatsNewPage` widget:

      // Actual code from the Calendar example:
      WhatsNewPage(
        title: const Text("What's New in Calendar"),
        features: [
          // Feature's type must be `WhatsNewFeature`
          WhatsNewFeature(
            icon: Icon(
              CupertinoIcons.mail,
              color: CupertinoColors.systemRed.resolveFrom(context),
            ),
            title: const Text('Found Events'),
            description: const Text(
              'Siri suggests events found in Mail, Messages, and Safari, so you can add them easily, such as flight reservations and hotel bookings.',
            ),
          ),
          WhatsNewFeature(
            icon: Icon(
              CupertinoIcons.time,
              color: CupertinoColors.systemRed.resolveFrom(context),
            ),
            title: const Text('Time to Leave'),
            description: const Text(
              "Calendar uses Apple Maps to look up locations, traffic conditions, and transit options to tell you when it's time to leave.",
            ),
          ),
        ],
      ),

      // To create custom onboarding page, use
      // `CupertinoOnboardingPage` widget:

      // Actual code from the GIF example:
      const CupertinoOnboardingPage(
        title: Text('Support For Multiple Pages'),
        body: Icon(
          CupertinoIcons.square_stack_3d_down_right,
          size: 200,
        ),
      ),
      const CupertinoOnboardingPage(
        title: Text('Great Look in Light and Dark Mode'),
        body: Icon(
          CupertinoIcons.sun_max,
          size: 200,
        ),
      ),
    ],
  );
}

CupertinoOnboarding can be shown as any other widget, but to match native feel, consider using modal_bottom_sheet package or other modal view.

See API reference for more information about customizing look and feel of the onboarding.

Features, bugs and contributions

Feel free to contribute to this project.

Please file feature requests and bugs at the issue tracker.
If you fixed a bug or implemented a feature by yourself, feel free to send a pull request.

Sponsoring

I am working on my packages in my free time.

If this package is helping you, please consider buying me a coffee, so I can keep updating and maintaining this package.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目