image_compare_slider 3.2.0
image_compare_slider: ^3.2.0 copied to clipboard
Easily compare two images with a slider and a draggable line/handle, fully customizable, with zoom, pan and rotation.
Changelog #
3.2.0 - 2026-06-30 #
3.1.0 - 2026-06-30 #
Added #
- Divider line style — new
dividerLineStyleparameter with aDividerLineStyletype to draw the divider as a solid, dashed or dotted line, or any fully custom dash pattern. Presets:DividerLineStyle.solid(),DividerLineStyle.dashed(),DividerLineStyle.dotted(), plus a rawpattern+strokeCapconstructor.
3.0.1 - 2026-06-17 #
Changed #
- CI: provision OIDC for pub.dev publishing (adds
dart-lang/setup-dartand adart pub publish --dry-runwarnings check to the publish workflow). No library code changes.
3.0.0 - 2026-06-17 #
Added #
- Zoom & pan —
zoomable/pannablepinch, drag and double-tap zoom applied to both images at once (closes #17). - Rotation with lock — new
ImageCompareSliderControllerrotates either image in either direction, withlockRotationto rotate both together; also drives zoom, pan, position andreset()(closes #22). - Custom handle —
handleBuilderreplaces the painted handle with any draggable widget (closes #2). - Match image sizes —
fit+aspectRatioforce differently-sized images into the same box (closes #15). onlyHandleDraggable,minScale,maxScale,doubleTapToZoom,doubleTapScale,enableGestureRotation.
Changed #
- BREAKING: bumps the SDK constraint to
>=3.0.0 <4.0.0(requires Dart 3 / Flutter 3.10+). The public API is otherwise backwards compatible.
2.8.0 - 2023-08-02 #
Added #
handleColorandhandleOutlineColorto customize the handle color and outline color.
2.7.0 - 2023-03-14 #
2.6.0 - 2023-03-06 #
Fixed #
- Handle being painted relative to the parent widget instead of the canvas.
2.5.0 - 2023-02-27 #
Changed #
handleSizechanged fromdoubletoSizeto customize the handle width and height independently.
2.4.0 - 2023-02-22 #
Added #
handleFollowsPositionto let the handle follow the position of the slider.
