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

family_bottom_sheet のカバー
パッケージ詳細v0.1.0

family_bottom_sheet

ナビゲーターのように、底面シート内に移動するようなスムーズでカスタマイズ可能なマルチページのボトムシートを構築するためのパッケージです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
732
いいね数
84
Pub ポイント
160

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

flutter pub add family_bottom_sheet

パッケージ概要

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

FamilyBottomSheet は、Flutter パッケージであり、開発者が滑らかでマルチページのボトムシートを簡単に作成でき、ナビゲーション遷移がスムーズに実現され、ボトムシート内での Navigator の動作を模倣します。すべての主要プラットフォームでカスタマイズ可能なレイアウトとアニメーションをサポートしており、深いナビゲーションを必要とする複雑なボトムシートインターフェースに最適です。既存の Flutter アプリに自然に統合され、滑らかで直感的な操作によりユーザー体験を向上させます。

用途

  • 複雑なボトムシートナビゲーション
  • 複数ステップのモーダルワークフロー
  • インタラクティブなオンボーディングフロー
  • 動的コンテンツパネル
  • フォームウィザード
  • カスタマイズ可能なスライドアップインターフェース

主な機能

  • スムーズなページ遷移
  • ボトムシート内のナビゲーターのようなナビゲーション
  • 高度にカスタマイズ可能な外観
  • クロスプラットフォーム対応
  • 組み込みアニメーション処理
  • 既存のルートとの簡単な統合

適している対象

  • 高度なボトムシートUIを構築する開発者
  • 複数ステップのモーダルを必要とするアプリ
  • スムーズなトランジションを求めるデザイナー
  • モジュール式UIコンポーネントを使用するチーム
  • 一貫したボトムシートの動作を必要とするプロジェクト

注意事項

  • バンドルサイズがわずかに増加する可能性があります
  • 慎重な状態管理が必要です
  • 非自明なボトムシートのフローに最適
  • 単一ページのシートには適していない
  • さまざまな画面サイズでのテストが必要です
  • 多数のネストされたページによるパフォーマンスへの潜在的影響

元の README

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

Family Modal Sheet

A customizable, navigation-friendly bottom sheet library for Flutter — designed with an API that feels familiar to showModalBottomSheet, while enabling advanced use cases like internal navigation and custom animations.

Inspired by Family's App Design System

This library was originally built as a clone of the dynamic tray system for the Family app — designed to handle complex user flows, internal navigation, and visually consistent modal sheets throughout the product.

Why does this exist?

In many apps, a modal bottom sheet isn't just a single static view — it's a flow.

We needed a solution that could:

  • Handle multiple pages inside a modal sheet
  • Animate smoothly between pages
  • Maintain visual consistency with system sheets
  • Be flexible for future use cases
  • Stay Flutter-idiomatic and lightweight

This package generalizes those patterns into a library you can use in your own apps.

Get Started

Install the library to your project by running:

flutter pub add family_modal_sheet

Demo



Example app

Usage

Show a simple modal sheet:

await FamilyModalSheet.show<void>(
    context: context,
    contentBackgroundColor: Colors.white,
    builder: (ctx) {
    return const MyBottomSheetContent();
    },

    // Optional configurations

);

If you want something more similar to the look and feel of the Flutter bottom sheet, use the FamilyModalSheet.showMaterialDefault method. It comes with sensible defaults that resemble the standard Flutter modal bottom sheet, but still allows for full customization if needed.

Push a New Page

FamilyModalSheet.of(context).pushPage(AnotherCustomPage());

Pop the Current Page

FamilyModalSheet.of(context).popPage();

Note: If it's the last page in the sheet stack, calling popPage() will automatically close the entire bottom sheet.

Check if you can pop

final bool canPop = FamilyModalSheet.of(context).canPopPage();

Use this to determine if calling popPage() will pop a page or dismiss the entire sheet

Get total page count

final int pageCount = FamilyModalSheet.of(context).getTotalPageCount();

Returns the number of pages currently in the stack

Customization

FamilyModalSheet.show exposes a wide range of configuration options — allowing you to fine-tune both the bottom sheet container and the content area independently.

This design gives you full control while following a clean, opinionated API similar to Flutter's showModalBottomSheet.

Content Area Customization (the page stack region)

  • builder - Build the current page widget. This is typically the first page in your sheet's navigation stack
  • contentBackgroundColor - Background color for the content area
  • mainContentBorderRadius - Optional border radius to apply around the content area.
  • mainContentPadding - Optional padding applied inside the content area, wrapping all pages.
  • safeAreaMinimum - Minimum safe area padding (can also be used to add bottom padding to the bottom sheet).
  • mainContentAnimationStyle - Custom animation configuration for transitions between pages (push/pop).

Bottom Sheet Container Customization (the outer modal appearance)

  • backgroundColor - Background color for the entire sheet (defaults to Colors.transparent)
  • elevation - Shadow elevation for the sheet container
  • shape - Custom shape for the sheet container (usually a rounded rectangle).
  • clipBehavior - Clip behavior for the sheet container shape
  • constraints - Optional size constraints for the entire sheet
  • barrierColor - Color of the modal barrier behind the sheet
  • barrierLabel - Accessibility label for the barrier
  • sheetAnimationStyle - Animation configuration for how the sheet appears/disappears from the screen

Behavior & Interaction Customization

  • enableDrag - Whether the sheet can be dismissed via swipe down gesture.
  • showDragHandle- Optionally display a drag handle at the top of the sheet.
  • isDismissible- Whether tapping outside the sheet dismisses it.
  • isScrollControlled- Expand the sheet beyond its default max height (good for full-screen sheets).
  • scrollControlDisabledMaxHeightRatio- When isScrollControlled is false, this ratio determines the maximum height the sheet can occupy relative to the screen height
  • useSafeArea- Whether to automatically apply safe area insets to the outer sheet.
  • useRootNavigator- Whether to push the sheet to the root navigator.
  • routeSettings- Optional route metadata.
  • anchorPoint- Controls where the sheet's entrance animation originates.
  • transitionAnimationController- Provide a custom animation controller if you want to synchronize with other animations.

Inspiration

This package is inspired by the Family app's bottom sheet design system — where bottom sheets act as dynamic navigation surfaces for key user flows.

This package is also inspired by work by the Wolt team on wolt_modal_sheet package

Contributors

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the family_bottom_sheet repo on GitHub.
  2. Clone your forked repo locally.
  3. Create a new branch from the main branch.
  4. Make your changes.
  5. Create a pull request.

カテゴリー

ソースリポジトリ

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

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