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

cupertino_sidebar のカバー
パッケージ詳細v1.0.1

cupertino_sidebar

FlutterにiOSスタイルのサイドバーとフローティングタブバーをもたらし、アプリ内のiPadOSスタイルのナビゲーションに洗練されたネイティブな感覚を提供します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
822
いいね数
63
Pub ポイント
150

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

flutter pub add cupertino_sidebar

パッケージ概要

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

cupertino_sidebar パッケージは、iOS風のサイドバーとフローティングタブバーをFlutterアプリに追加し、ネイティブなiPadOSのようなナビゲーション体験を提供します。複数のプラットフォームでAppleの洗練されたインターフェースを再現したい開発者向けに設計されており、Android、iOS、Web、macOS、Windows、LinuxのFlutterプロジェクトにスムーズに統合できます。直感的なジェスチャーと応答性のあるレイアウトにより、コンパクトモードと拡張モードの両方に対応しており、生産性やコンテンツ豊富なアプリに最適です。軽量で実装が簡単であり、Cupertinoデザイン原則に準拠しています。

用途

  • iPadOSスタイルのアプリナビゲーション
  • サイドパネル付きの生産性アプリ
  • コンテンツ管理インターフェース
  • デスクトップでのマルチペインレイアウト
  • Appleエコシステムユーザーをターゲットにしたアプリ

主な機能

  • iOSスタイルのフローティングタブバー
  • レスポンシブサイドバーのレイアウト
  • すべての主要プラットフォームに対応
  • ジェスチャー駆動型ナビゲーション
  • カリフォルニア・キューバティノデザイン準拠
  • コンパクトモードと拡張モード

適している対象

  • iPadOSユーザーをターゲットにする開発者
  • マルチペインナビゲーションを必要とするアプリ
  • ネイティブなiOSの美学を求めるデザイナー
  • クロスプラットフォームデスクトップアプリケーション
  • 使いやすさを重視するFlutterプロジェクト

注意事項

  • より大きな画面に最適
  • 小さなデバイスではレイアウトの調整が必要になる場合があります
  • Cupertinoスタイルを超えるカスタマイズは限られている
  • 従来のモバイル専用アプリには適していない

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Cupertino Sidebar

cupertino_sidebar brings iOS-style sidebars and floating tab bars to Flutter, providing a sleek, native feel for iPadOS-style navigation in your app.

Features

Cupertino Sidebar

Cupertino Sidebar

A iOS-style sidebar that can be used to navigate through your app.

Cupertino Floating Tab Bar

Cupertino Floating Tab Bar

A iPadOS-style floating tab bar that can also be used to navigate through your app.

📖 Usage

Sidebar

The CupertinoSidebar works very similar to Flutter's NavigationDrawer. It accepts a list of destinations, a selected index, and a callback function triggered when a destination is tapped.

CupertinoSidebar(
  selectedIndex: _selectedIndex,
  onDestinationSelected: (value) {
    setState(() {
      // Update the selected index when a destination is selected.
      _selectedIndex = value;
    });
  },
  children: [
    // index 0
    SidebarDestination(
      icon: Icon(CupertinoIcons.home),
      label: Text('Home'),
    ),
    // index 1
    SidebarDestination(
      icon: Icon(CupertinoIcons.person),
      label: Text('Items'),
    ),
    // index 2
    SidebarDestination(
      icon: Icon(CupertinoIcons.search),
      label: Text('Search'),
    ),
  ],
);

CupertinoSidebar also supports expandable sections, allowing you to group destinations.

...
children: [
    ...
   SidebarSection(
      label: Text('My section'),
      children: [
        SidebarDestination(
          icon: Icon(CupertinoIcons.settings),
          label: Text('Settings'),
        ),
        ...
      ],
    ),
]

For a full example, see the Sidebar example.

Floating Tab Bar

The CupertinoFloatingTabBar is managed by a TabController, with options to add tabs and specify a callback function.

CupertinoFloatingTabBar(
  onDestinationSelected: (value) {},
  controller: _myTabController,
  tabs: const [
    CupertinoFloatingTab(
      child: Text('Today'),
    ),
    CupertinoFloatingTab(
      child: Text('Library'),
    ),
    CupertinoFloatingTab.icon(
      icon: Icon(CupertinoIcons.search),
    ),
  ],
)

For a full example, see the Tab Bar example.

Additional examples

📅 Roadmap

This package is actively being developed. Planned features include:

  • Tab bar to sidebar transition
  • Adaptive scaffold that switches between a sidebar and a floating tab bar and a bottom tab bar depending on the screen size.

🤝 Contributing

Contributions are welcome! Feel free to submit issues, ideas, or pull requests. Together, we can make cupertino_sidebar even better!

カテゴリー

ソースリポジトリ

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

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