Releases: flutterbysunny/smart_bottom_sheet
Releases · flutterbysunny/smart_bottom_sheet
v1.0.2 — Backdrop, SheetTheme & SideSheet
v1.0.2
✨ New Features
- 🌫️ SheetBackdrop — dark, light, frosted, none backdrop styles
- 🎨 SheetTheme — app-wide default config via
InheritedWidget ↔️ SideSheet — slides in from left or right side of screen- 🎯 SheetHandle integrated — all sheets use custom handle styles
- 🔔 barrierColor — all sheets respect backdrop configuration
- 📊 Event log — callbacks demo in example app
🛠️ Improvements
- All sheets auto-pick
SheetThemeconfig _resolveBarrierColorconsistent across all sheets- 33 unit + widget tests passing
📦 Installation
```yaml
dependencies:
smart_bottom_sheet: ^1.0.2
```
💡 Usage — SheetTheme
```dart
SheetTheme(
config: SheetConfig(
handleStyle: HandleStyle.pill,
backdrop: SheetBackdrop(
style: BackdropStyle.frosted,
blurStrength: 10,
opacity: 0.2,
),
),
child: MaterialApp(...),
)
```
💡 Usage — SideSheet
```dart
SideSheet.show(
context,
title: 'Filters',
direction: SideSheetDirection.right,
child: FilterWidget(),
);
```
🔗 Links
v1.0.1 — Haptic Feedback, Callbacks & Stacked Sheets
v1.0.1
✨ New Features
- 📳 Haptic Feedback — light, medium, heavy impact on each snap position
- 🔔 Callbacks —
onOpen,onClose,onSnapinSheetController - 📜 Nested Scroll Support — inner list scrolls when sheet is fully expanded
- 🗂️ SheetStackManager — push/pop sheets on top of each other like Apple Maps
- 🎨 Custom Handle Styles —
defaultHandle,pill,pulse,arrow,none - 🎨 Handle Color — custom color support via
SheetConfig
🛠️ Improvements
- Cleaner snap logic with
_updateSnaphelper - Full dartdoc documentation on all public APIs
- 26 unit + widget tests passing
📦 Installation
```yaml
dependencies:
smart_bottom_sheet: ^1.0.1
```
🔗 Links
Initial Release
Features
- ✅ Action Menu Sheet — quick actions with icons & destructive styling
- ✅ Snap Sheet — 3 snap points with rubber-band physics
- ✅ Form Sheet — keyboard-aware inline forms with validation
- ✅ Confirm Sheet — thumb-friendly AlertDialog replacement
- ✅ Stepper Sheet — multi-step flow with animated transitions
- ✅ Rating Sheet — animated star picker with comment field
Installation
dependencies:
smart_bottom_sheet: ^1.0.0