adaptive_sheet 1.0.1
adaptive_sheet: ^1.0.1 copied to clipboard
A zero-boilerplate, responsive Cupertino bottom sheet kit for Flutter. Clean header, drag physics, keyboard handling, and adaptive tablet presentation.
1.0.1 #
- Compress the demo GIFs so they render in the README on GitHub and pub.dev.
- Shorten the package description to satisfy pub.dev length limits.
- No API changes.
1.0.0 #
- Initial release.
- Zero-boilerplate
AdaptiveSheet.show<T>(...)andcontext.showAdaptiveSheet<T>(...)API returningFuture<T?>. - Built-in customizable header: grabber, leading icon, title, subtitle, and close button.
- Distinct header controls: a quiet "ghost" leading action vs a prominent, 44×44 keyboard-focusable close button.
- Native drag physics via
DraggableScrollableSheetwith snap-to-stops and drag-to-dismiss. - Sticky
footerbuilder that pins action buttons below the scrollable content. - iOS-style action lists:
AdaptiveSheetActionandAdaptiveSheetActionGroup(including destructive rows). - Keyboard avoidance that keeps inputs above the software keyboard.
- Responsive sizing: full width on phones, width-constrained and optionally centered on tablets/large displays.
- Optional frosted-glass barrier (
barrierBlur) and dimmed barrier with configurable opacity. onWillPopguard protecting dirty forms across accidental dismissal paths (close button, barrier, drag, back).- Safe-area, notch, and home-indicator handling.
expandContentToFitmode for content-sized sheets; clamped, non-throwing size fractions.- Full
///documentation and a widget-test suite covering dismissal, guards, keyboard insets, overflow, and responsive widths. - Five runnable, tested examples: a Google-Maps-style location card, media picker, password reset with live strength checklist, live theme/accent customizer, and a gated terms reader; plus a live theme-mode/accent notifier in the example app.