A flutter package which makes it easier to display the difference between two images.
MIT License
Bot releases are hidden (Show)
widget.thumbColor
not working by @xsahil03x in https://github.com/xsahil03x/before_after/commit/ab8b50ced4aab6754abd7ff622281cfa6e4e7ab6
MaterialStateProperty
to WidgetStateProperty
by @xsahil03x in https://github.com/xsahil03x/before_after/commit/32f3b4ab53ebc47d6b988ae3ba042693a13ca486
Published by xsahil03x over 1 year ago
ðĻ Breaking
Changes in the BeforeAfter
widget:
directions
. The new direction property allows you to specify whether the sliderhorizontally
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.