パッケージ、リポジトリ、アプリカテゴリを検索

cupertino_stackview のカバー
パッケージ詳細v2.0.0

cupertino_stackview

iOS 13スタイルのスタックを実現するための、非常に使いやすいナビゲーションツール/ウィジェットです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
86
いいね数
53
Pub ポイント
140

パッケージをインストール

flutter pub add cupertino_stackview

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

CupertinoStackView は、iOS 13スタイルのスタックベースのナビゲーションを作成するのを簡単にするFlutterウィジェットです。最小限の設定でスムーズでネイティブな画面間の遷移を提供し、iOSの組み込みスタックナビゲーションの見た目と感触を模倣します。クロスプラットフォームで一貫したiOSの美学を実現したい開発者向けに設計されており、Android、iOS、Web、macOS、Windows、Linuxなど、すべての主要なFlutterプラットフォームをサポートしています。直感的なジェスチャーとアニメーションを通じてユーザー体験を向上させ、現代的でiOS中心のインターフェースを必要とするアプリに最適です。

用途

  • iOSスタイルの画面遷移
  • スワイプジェスチャーによるナビゲーション
  • レイヤードUIの作成
  • クロスプラットフォームのiOSデザインの一貫性
  • アプリオンボーディングフロー
  • モーダルスタック管理

主な機能

  • iOS 13 スタックナビゲーションスタイル
  • ジェスチャー駆動型ナビゲーション
  • スムーズなアニメーション
  • クロスプラットフォーム対応
  • 最小構成
  • カスタマイズ可能な遷移エフェクト

適している対象

  • iOSデザイン言語をターゲットにする開発者
  • ネイティブなiOSナビゲーションが必要なアプリは感じます
  • 複雑なスクリーン階層を持つプロジェクト
  • UXの一貫性を重視するチーム
  • 複数のプラットフォームでの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.





カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。