image_compare_slider 2.0.1 copy "image_compare_slider: ^2.0.1" to clipboard
image_compare_slider: ^2.0.1 copied to clipboard

Easily compare two images with a slider and a draggable line/handle, fully customizable.

Image Compare Slider #

ci pub package Coverage badge style: very good analysis Powered by Mason License: MIT

Inspired by react-compare-slider, this package allows you to easily compare two images with a slider.

PR's are welcome!

Installation 💻 #

❗ In order to start using Image Compare you must have the Dart SDK installed on your machine.

Add image_compare_slider to your pubspec.yaml:

dependencies:
  image_compare_slider:

Install it:

dart pub get

Import it:

import 'package:image_compare_slider/image_compare_slider.dart';

Use it:

//...
ImageCompareSlider(
  itemOne: const AssetImage('assets/images/render.png'),
  itemTwo: const AssetImage('assets/images/render_oc.png'),
)
//...

The widget its pretty simple and customizable, see: If you want it to style it with a custom border/padding, just wrap it with a Container and set the desired properties.

Example

99
likes
0
pub points
83%
popularity

Publisher

unverified uploader

Easily compare two images with a slider and a draggable line/handle, fully customizable.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on image_compare_slider