Skip to content
pubscout

before_after_image_slider_nullsafty

1.0.1, released 4 years ago by an unverified publisher

A Flutter widget to display differences between two images side by side with a slider.

WASM-ready
$ flutter pub add before_after_image_slider_nullsafty
Source repository

What it does

Provides a BeforeAfter widget that renders a before image and an after image overlaid on top of each other. Users can drag a slider handle horizontally or vertically to reveal parts of each image and easily compare them.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to showcase photo editing results, filters, or image transformations.
  • You want a simple side-by-side comparison slider for two visual assets.

Skip it when

  • You need complex image zooming and panning capabilities like photo viewers.
  • You require advanced non-image comparison layouts.

Strengths

  • Easy to implement with customizable thumb colors, corner radii, and orientation.
  • Supports both horizontal and vertical layouts.

Weaknesses

  • Limited feature set beyond simple before-and-after image sliding.
  • Only an initial release version is documented.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
BeforeAfter(
  beforeImage: Image.asset('assets/after.jpg'),
  afterImage: Image.asset('assets/before.jpg'),
)

Alternatives

Packages that do the same job and could replace before_after_image_slider_nullsafty.

  • photo_view

    Pick photo_view if you need rich zoom, pan, and gallery features rather than just a simple comparison slider.