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
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.
- adaptive_dialog
Shows platform‑adaptive alert dialogs and action sheets
93Compare - floating_snackbar
Customizable floating snackbars and toasts with variants, positioning, progress bars, and context-free overlay.
57Compare - cupertino_modal_sheet
Shows an iOS‑style modal sheet that slides up from the bottom of the screen.
50Compare - side_sheet
Implements side sheets for all platforms and responsive UI.
47Compare