Skip to content
pubscout

top_modal_sheet

2.1.0, released 3 years ago by an unverified publisher

A simple modal sheet implementation that appears from the top of the screen.

WASM-ready
$ flutter pub add top_modal_sheet
Source repository

What it does

Provides a function to display a modal sheet sliding down from the top of the screen. Returns a value when the modal sheet is dismissed.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display a modal sheet from the top of the screen instead of the bottom.
  • You want a straightforward way to capture user input or display temporary content from the top.

Skip it when

  • You need standard bottom sheets provided by Flutter material library.
  • You require complex navigation stacks inside the sheet.

Strengths

  • Simple API with a single function call to show the modal sheet.
  • Cross-platform support across Android, iOS, web, Windows, macOS, and Linux.

Weaknesses

  • Limited documentation and configuration options are only briefly mentioned in changelogs.
  • Not documented for advanced customization features.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
var value = await showTopModalSheet<String?>(context, DummyModal());

Alternatives

Packages that do the same job and could replace top_modal_sheet.