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

bottom_sheet_bar のカバー
パッケージ詳細v2.3.11

bottom_sheet_bar

ウィジェットの下部に配置され、ボトムシートに拡張されるツールバー。

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

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

flutter pub add bottom_sheet_bar

パッケージ概要

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

BottomSheetBar は、画面下部に固定されたツールバーを提供する Flutter パッケージであり、フルサイズのボトムシートに拡張できます。コンパクト状態と拡張状態の間でスムーズな遷移を提供し、ナビゲーション、コントロール、または追加コンテンツへのアクセスに最適です。カスタマイズ可能で、Android、iOS、Web、macOS、Windows、Linux などの主要プラットフォームで動作します。直感的なユーザーインタラクションを実現するように設計されており、メインインターフェースを混雑させることなく重要な操作を常にアクセス可能に保ちます。

用途

  • コントロールへの素早いアクセス
  • 折りたたみ可能メニュー付きのナビゲーション
  • 拡張可能なパネルを備えたフォーム入力
  • メディア再生コントロール
  • 動的コンテンツフィルタリング

主な機能

  • 下部に配置されたツールバー
  • 下部シートへのスムーズな拡張
  • クロスプラットフォーム互換性
  • カスタマイズ可能な外観
  • ジェスチャーで操作する開閉
  • レスポンシブデザイン

適している対象

  • モバイル最適化アプリ
  • インタラクティブダッシュボード
  • コンテンツが豊富なインターフェース
  • ユーザー中心のナビゲーション
  • 折りたたみ可能なツールバーが必要なアプリ

注意事項

  • 他のボトムオーバーレイと競合する可能性があります
  • 慎重なレイアウト計画が必要です
  • 大量コンテンツによるパフォーマンスへの影響
  • デフォルト状態でのカスタマイズが限定的
  • フルスクリーンモーダルの使用には適していません

元の README

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

bottom_sheet_bar

A toolbar that aligns to the bottom of a widget and expands into a bottom sheet.

Short content Long content Scrollable content
import 'package:bottom_sheet_bar/bottom_sheet_bar.dart';

BottomSheetBar(
    expandedBuilder: (scrollController) => ListView.builder(
        controller: scrollController, 
        itemBuilder: (context, index) => ListTile(title: index.toString()),
        itemCount: 50,
    ),
    collapsed: Text('Collapsed toolbar widget'),
    body: Text('Content overlayed by toolbar and bottom sheet'),
);

BottomSheetBar

Required
  • Widget body - The toolbar will be aligned to the bottom of the body Widget. Padding equal to height is added to the bottom of this widget.
  • Function(ScrollController) expandedBuilder - A function to build the widget displayed when the bottom sheet is expanded. If the expanded content is scrollable, pass the provided ScrollController to the scrollable widget.
Optional
  • Widget collapsed - A Widget to be displayed on the toolbar in its collapsed state
  • BottomSheetBarController controller - A controller can be used to listen to events, and expand and collapse the bottom sheet.
  • Color color - The background color of the toolbar and bottom sheet. Defaults to Colors.white
  • Color backdropColor - The backdrop color that overlays the [body] widget when the bottom sheet is expanded. Defaults to Colors.transparent (no backdrop)
  • BorderRadius borderRadius - Provide a border-radius to adjust the shape of the toolbar
  • BorderRadius borderRadiusExpanded - Provide a border-radius to adjust the shape of the bottom-sheet when expanded
  • List<BoxShadow> boxShadows - Provide shadow decoration to the bottom sheet
  • double height - The height of the collapsed toolbar. Default to kToolbarHeight (56.0)
  • bool isDismissable - If true, the bottom sheet can be dismissed by tapping elsewhere. Defaults to true
  • bool locked - If true, the bottom sheet cannot be opened or closed with a swipe gesture. Defaults to true
  • bool willPopScope - If true, the bottom sheet widget will be wrapped in a WillPopScope widget to handle back-gestures. Defaults to false
  • bool backButtonListener - If true, the bottom sheet widget will be wrapped in a BackButtonListener widget to handle back-gestures. Defaults to false

BottomSheetBarController

A controller used to expand or collapse the bottom sheet of a BottomSheetBar. Listeners can be added to respond to expand and collapse events. The expanded or collapsed state can also be determined through this controller.

  • bool get isCollapsed - Only returns [true] if the bottom sheet if fully collapsed
  • bool get isExpanded - Only returns [true] if the bottom sheet if fully expanded
  • TickerFuture collapse() - Collapse the bottom sheet built by BottomSheetBar.expandedBuilder
  • TickerFuture expand() - Expand the bottom sheet built by BottomSheetBar.expandedBuilder
  • void addListener(Function listener) - Adds a function to be called on every animation frame
  • void removeListener(Function listener) - Removes a previously added listener
  • void dispose() - Removes all previously added listeners
  • void attach(AnimationController animationController) - Used internally to assign the AnimationController created by BottomSheetBar to the controller. Unless you're using advanced animation techniques, you probably won't ever need to use this method.

Example

A quick demonstration can be found in the example directory. To run the example:

flutter run example/main.dart

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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