Releases: xsahil03x/before_after
Releases · xsahil03x/before_after
3.1.0
What's Changed
- fix:
widget.thumbColor
not working by @xsahil03x in ab8b50c - fix: Migrated deprecated
MaterialStateProperty
toWidgetStateProperty
by @xsahil03x in 32f3b4a
v3.0.0
🚨 Breaking
Changes in the BeforeAfter
widget:
- Added support for different slider
directions
. The new direction property allows you to specify whether the slider
can be draggedhorizontally
orvertically
. - Renamed the
beforeImage
andafterImage
properties tobefore
andafter
, respectively, for better clarity. - Added the
height
andwidth
properties to control the size of the BeforeAfter widget. - Added the
trackWidth
property to customize the width of the slider track. - Added the
trackColor
property to set the color of the slider track. - Added the
hideThumb
property to hide the slider thumb if needed. - Added the
thumbHeight
andthumbWidth
properties to specify the size of the slider thumb. - Renamed the
thumbColor
property tothumbDecoration
to allow more flexible customization using BoxDecoration. - Added the
overlayColor
property to set the color of the overlay when the thumb is interacted. - Added the
divisions
property to specify the number of discrete divisions on the slider. - Added the
onValueChanged
callback to handle changes in the slider value. - Added the
thumbPosition
property to set the initial position of the slider thumb. - Added the
thumbDivisions
property to specify the number of discrete divisions on the slider thumb. - Added the
onThumbPositionChanged
callback to handle changes in the thumb position. - Added support for custom mouse cursors using the
mouseCursor
property. - Added support for focus and autofocus using the
focusNode
andautofocus
properties.
New features:
- Added the
BeforeAfterTheme
class to provide default theme values for the BeforeAfter widget.