搜尋套件、儲存庫與 APP 分類

cupertino_stackview 封面
套件詳情v2.0.0

cupertino_stackview

一個非常容易使用的導航工具/組件,用於實現 iOS 13 風格的堆疊。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
86
喜歡數
53
Pub 分數
140

安裝套件

flutter pub add cupertino_stackview

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

CupertinoStackView 是一個 Flutter 小部件,可簡化建立 iOS 13 標準的基於堆疊的導航。它提供順暢、類原生的螢幕間轉場效果,只需最少設定,模擬 iOS 內建堆疊導航的外觀與感覺。專為希望在跨平台應用中實現一致 iOS 美學的開發者設計,支援所有主要的 Flutter 平台,包括 Android、iOS、Web、macOS、Windows 和 Linux。該套件透過直覺的手勢與動畫提升使用者體驗,非常適合需要現代、以 iOS 為中心介面的應用。

適用情境

  • iOS 風格的螢幕轉場
  • 透過滑動手勢進行導航
  • 建立分層 UI
  • 跨平台 iOS 設計一致性
  • 應用引導流程
  • 模態棧管理

主要特色

  • iOS 13 堆疊導航樣式
  • 基於手勢的導航
  • 流暢的動畫
  • 跨平台支援
  • 最小設定
  • 可自訂的過渡效果

適合對象

  • 針對iOS設計語言的開發者
  • 需要原生 iOS 导航的應用感覺
  • 具有複雜螢幕層級的專案
  • 注重使用者體驗一致性的團隊
  • Flutter 應用在多個平台
  • 以設計為導向的行動應用程式

使用建議

  • 最適合用於 iOS 取向的設計
  • 可能需要額外的樣式以適配非iOS主題
  • 與完整自定義導航器相比,自訂選項較少
  • 不適合高度複雜的路由情境
  • 依賴手勢辨識的準確性
  • 效能可能在舊裝置上有所差異

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

cupertino_stackview

Cosmos Software Cosmos Software

Pub License

A very easy-to-use navigation tool/widget for having iOS 13 style stacks.

It is highly recommended to read the documentation and run the example project on a real device to fully understand and inspect the full range of capabilities.

Media | Description | Installation | How-to-Use

Media

Watch on Youtube:

v1.0.0



Description

The "StackView" system, as I like to call it because I don't know the real name, is now the default navigation system for iOS 13. As a fan of this, I decided to implement a very easy-to-use version of it for Flutter as well.

How-to-Use

First, instantiate the cupertinoStackViewController that is provided by "misc.dart" with the required parameters:

cupertinoStackViewController = CupertinoStackViewController(
    navigatorState,
    {
      "Page I": (BuildContext context, dynamic parameters) {
        return PageI();
      },
      "Page II": (BuildContext context, dynamic parameters) {
        return PageII();
      },
      "Page III": (BuildContext context, dynamic parameters) {
        return PageIII();
      },
      "Page IV": (BuildContext context, dynamic parameters) {
        return PageIV();
      },
      ...,
    },
);

Then create a CupertinoStackView widget as shown in the example:

CupertinoStackView(
  true,             //_isPrimary 
  "Page I",         //_navigation
  Scaffold(...),    //_child
  Colors.black,     //_backgroundColor 
 {Key key,
  radius    : Radius.circular(10.0)})

Further Explanations:

For a complete set of descriptions for all parameters and methods, see the documentation.

  • The [cupertinoStackViewController] from 'misc.dart' has to be initialised as soon as the application starts via the [void initialise(double height, double width)] method. Use this method with the [MediaQuery.of(context).size.height] and [MediaQuery.of(context).size.width] values.
  • Use [CupertinoStackViewController]'s [Future back(BuildContext context, dynamic parameters) async] and [Future navigate(String targetNavigation, BuildContext context, dynamic parameters) async] methods for the corresponding actions. Do not call [Navigator] methods directly.

Notes

Any help, suggestion or criticism is appreciated!

Cheers.





所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。