FLUTTER ECOSYSTEM

zuvola/cupertino_modal_sheet

zuvola/cupertino_modal_sheet open-source repository details.

cupertino_modal_sheet のプロジェクト画像
Stars
13
Forks
8
最終プッシュ(UTC)
2024/05/29
プロジェクト状態
公開中
zuvola GitHub avatar
言語C++CMakeDartHTMLCSwiftKotlinObjective-C

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

使用している依存関係

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

元の README

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

README を開く / 閉じる

cupertino_modal_sheet

pub package

English, 日本語

Shows a modal iOS-style sheet that slides up from the bottom of the screen.

On mobile devices, the content is displayed as a sheet, with part of the background content near the top of the screen.
On tablet, a dimming layer is added to the background content and the content is centered over this layer.

Mobile

https://github.com/zuvola/cupertino_modal_sheet/blob/master/example/ss/mobile.gif?raw=true

Tablet

https://github.com/zuvola/cupertino_modal_sheet/blob/master/example/ss/tablet.gif?raw=true

Features

  • Hero compatibility
  • Tablet compatibility
  • Swiping to dismiss
  • Multi sheet (Dimming is imperfect)
  • Navigator2 compatibility

Getting started

showCupertinoModalSheet(
  context: context,
  builder: (context) => BookDetailsScreen(book: book),
);

Navigator2.0

Use CupertinoModalSheetPage or directly CupertinoModalSheetRoute.

TODO

  • [ ] Tests
  • [ ] Extensibility
  • [ ] Fix dimming of multi-sheet

PRs are welcome!