FLUTTER ECOSYSTEM

egortabula/side_sheet_material3

このFlutterパッケージは、Material Design 3のモーダルサイドシートウィジェットを提供します。

side_sheet_material3 のプロジェクト画像
Stars
4
Forks
5
最終プッシュ(UTC)
2025/12/14
プロジェクト状態
公開中
Egor Tabula GitHub avatar
GITHUB User

Egor Tabula ↗

Flutter developer

@Widgyio Moscow
言語C++CMakeDartHTMLSwiftCKotlinObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件
  • flutter{"sdk":"flutter"}
  • lints開発用^2.0.0
  • test開発用^1.21.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

https://raw.githubusercontent.com/egortabula/side_sheet_material3/main/assets/Material%20design%203%20side%20sheet.jpg

Material Design 3 modal side sheet

A Flutter package that provides a Material Design 3 side sheet as a general dialog.

Please check out the official documentation for more information on Material Design side sheet

Features

  • Custom header and body widgets.
  • Option to add a back button and close button.
  • Option to add confirm and cancel action buttons.
  • Option to show/hide a divider between the body and action buttons.
  • Customizable button text and tooltips.
  • Option to dismiss the dialog by tapping outside of it.

Usage

To use this package, add side_sheet_material3 as a dependency in your pubspec.yaml file.

dependencies:
  side_sheet_material3: ^0.0.1

Example

await showModalSideSheet(
  context: context,
  header: 'Edit Profile',
  body: ProfileEditForm(), // Put your content widget here
  addBackIconButton: true,
  addActions: true,
  addDivider: true,
  confirmActionTitle: 'Save',
  cancelActionTitle: 'Cancel',
  confirmActionOnPressed: () {
    // Do something
  },

  // If null, Navigator.pop(context) will used
  cancelActionOnPressed: () {
    // Do something
  },
);

Please check out the full example for more information on how to use this package.

Buy me a coffe