image_compare_slider
3.2.0, released 5 months ago by an unverified publisher
Compare two images with a slider, handle, zoom, pan, and rotation.
What it does
Provides a widget to easily compare two images using a slider with a draggable line and handle. Supports custom line styles, zooming, panning, rotation, and size matching.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to visually compare two images side-by-side or overlaid with a slider.
- Users need to zoom, pan, or rotate the compared images synchronously.
Skip it when
- You are not comparing images.
- You need complex multi-image carousels or image galleries without comparison features.
Strengths
- Supports zoom, pan, and rotation with an optional controller.
- Highly customizable handles, divider lines, and builders for wrapper effects.
- Handles different image sizes and aspect ratios automatically.
Weaknesses
- Limited strictly to comparing two images.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
No native permissions or special configuration needed.
ImageCompareSlider(
itemOne: const Image.asset('assets/image_one.png'),
itemTwo: const Image.network('https://example.com/image_two.png'),
)Alternatives
Packages that do the same job and could replace image_compare_slider.
- sheet
A fully customizable draggable bottom sheet for Flutter.
73Compare - uiblock
Easily block or unblock the UI with loading states in Flutter apps.
48Compare - flutter_earth_globe
An interactive and fully customizable 3D Globe widget written in pure Dart.
80Compare - simple_shadow
Customizable drop shadow widget for any child
45Compare