搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案