搜索插件、代码仓与 APP 分类

cupertino_modal_sheet 封面
插件详情v1.1.0

cupertino_modal_sheet

显示一个从屏幕底部滑出的iOS风格模态面板。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1.6万
喜欢数
85
Pub 分数
150

安装插件

flutter pub add cupertino_modal_sheet

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,可显示 iOS 风格的底部弹出模态框,从屏幕底部滑入。该组件旨在模仿 Apple 的原生 Cupertino 模态弹窗,为 Android、iOS、Web、macOS、Windows 和 Linux 提供流畅且符合平台特性的用户体验。该包轻量且可无缝集成到现有的 Flutter 应用中,支持自定义外观和行为。它支持拖拽关闭等交互手势,可用于选项选择、表单展示或以紧凑聚焦的方式呈现额外内容。

适合场景

  • 显示操作菜单
  • 展示表单输入
  • 显示详细信息
  • 处理用户选择
  • 实现 iOS 风格的模态框

主要特点

  • iOS 风格的滑动上浮动画
  • 手势驱动的关闭
  • 跨平台兼容性
  • 可自定义内容
  • 平滑过渡
  • 支持所有主要平台

适合对象

  • iOS 风格的用户界面设计
  • 跨平台应用中的底部弹出模态框
  • 用户输入表单
  • 操作选择接口
  • 针对 Apple 生态系统的应用

使用建议

  • 最适合iOS风格的设计
  • 可能需要在非iOS平台上进行样式调整
  • 仅限底部表单布局
  • 不适合全屏模态框
  • 依赖于Cupertino主题的一致性

原始 README

以下为关联源码仓库的 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

Tablet

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!

所属分类

源码仓库

使用此插件的项目

暂无相关数据。