A flutter package which makes it easier to display the difference between two images.
🚨 Breaking
Changes in the BeforeAfter
widget:
directions
. The new direction property allows you to specify whether the slider
can be dragged horizontally
or vertically
.beforeImage
and afterImage
properties to before
and after
, respectively, for better clarity.height
and width
properties to control the size of the BeforeAfter widget.trackWidth
property to customize the width of the slider track.trackColor
property to set the color of the slider track.hideThumb
property to hide the slider thumb if needed.thumbHeight
and thumbWidth
properties to specify the size of the slider thumb.thumbColor
property to thumbDecoration
to allow more flexible customization using BoxDecoration.overlayColor
property to set the color of the overlay when the thumb is interacted.divisions
property to specify the number of discrete divisions on the slider.onValueChanged
callback to handle changes in the slider value.thumbPosition
property to set the initial position of the slider thumb.thumbDivisions
property to specify the number of discrete divisions on the slider thumb.onThumbPositionChanged
callback to handle changes in the thumb position.mouseCursor
property.focusNode
and autofocus
properties.New features:
BeforeAfterTheme
class to provide default theme values for the BeforeAfter widget.