FLUTTER ECOSYSTEM

zuvola/cupertino_modal_sheet

zuvola/cupertino_modal_sheet open-source repository details.

cupertino_modal_sheet 项目封面
Stars
13
Forks
8
最近推送(UTC)
2024年5月29日
项目状态
未归档
zuvola GitHub avatar
GITHUB User

zuvola ↗

语言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!