- New feature: Horizontal snapping sheets are not possible using
SnappingSheet.horizontal(...)
! - New feature:
controller.snapToPosition
returns a future. - Breaking: New and more callback data on moving events.
- Breaking:
SheetSizeStatic(height: 123)
is nowSheetSizeStatic(size: 123)
. - Remove debug output
- Minor documentation changes
- Fix image previews in README
- FULL REFACTORING OF PROJECT. The package has gone through a full refactoring while adding null-safety. Be aware of many breaking changes, it is strongly recommended to read the documentation of this package again if updating from a earlier version of Snapping Sheet.
- Added many many test for the package to make it more stable and easier to maintain in the feature.
- The Snapping Sheet can now adapt to a scrollable widget located inside it.
- To Snapping Sheet no longer gets stuck at certain positions.
- First step for null-safety migration. Thanks to ngxingyu for the PR! Breaking change: Replace positionFactor and positionPixel with position and added isFactor parameter.
- Fix bug where the snapping sheet could be stuck at the first snapping position when lockOverflowDrag is set to true. Thanks to b1acKr0se for finding a solution! Breaking change: Change the spelling from "manuel" to "manual" for the SnappingSheetHeight object.
- Fix bug where the snapping sheet do not correct it self when the orientation of the device is changed.
- Breaking change: The sheetBelow and sheetAbove parameters now takes in a [snappingSheetContent] widget instead of any widget. To fix, just wrap your current widget with a [snappingSheetContent] widget.
- Breaking change Changed so that sheetAboveMargin and sheetBelowMargin must specified in the[snappingSheetContent] widget.
- Breaking change Changed so that sheetBelowDraggable and sheetAboveDraggable must specified in the[snappingSheetContent] widget.
- Add the option to specify a heigh behavior when the size of the sheet is changing.
- Fix error when sheet dragged after last or first [snappingPosition]. Thank you N1ght-Fury
- Remove required syntax for [sheetBlow] parameter. Thank you Nico04
- Fix a dragging bug where the grabbing widget is stuck when lockOverflowDrag was set to true
- Added the option to make sheetBelow and sheetAbove widget draggable.
- Added the option to lock overflow drag.
- Added new example of using a top sheet.
- Fix minor bugs with the snapping system.
-
Breaking changes, renamed parameters such as
- sheet -> sheetBelow
- remaining -> sheetAbove
- grabing -> grabbing
- grabingHeight -> grabbingHeight
- remainingMargin -> sheetAboveMargin
- snapSheetController -> snappingSheetController
-
The option to add negative and positive margin to the sheetBelow widget
-
The sheetBelow and sheetAbove widgets are now optional
- Improve the snap system for the sheet. Now the sheet only snaps to above snap positions if dragging upwards and snap positions below if dragging downwards
- Made the background widget (child) optional
- Updated the pubspec description
- The initial release