The changes in v0.10.0 are summarized as follows. Breaking changes are marked with 💥.
-
The
double? minPixels
anddouble? maxPixels
parameters in thecopyWith
method have been replaced withExtent? minPosition
andExtent? maxPosition
, respectively. TheminPixels
andmaxPixels
getters are still available in this version. -
SheetMetrics
is now a mixin and can no longer be instantiated directly. Use theSheetMetricsSnapshot
class for this purpose.
- The
findSnapPixels
method has been removed. UsefindSettledPosition
instead. SnapToNearest.snapTo
has been renamed toanchors
.
- The
createSettlingSimulation
method has been removed in favor of thefindSettledPosition
method. - As a result,
InterpolationSimulation
has also been removed since it is no longer used internally and is not a core feature of the package. SnappingSheetPhysics.snappingBehavior
has been renamed tobehavior
.
SheetController
is no longer a notifier of SheetMetrics
, and is now a notifier of the sheet
position (double?
) instead. It is still possible to access the SheetMetrics
object through
the SheetController.metrics
getter.
Extent
, FixedExtent
, and ProportionalExtent
have been renamed
to SheetAnchor
, FixedSheetAnchor
, and ProportionalSheetAnchor
, respectively.