Skip to content
pubscout

juxtapose

1.2.0, released 5 years ago by lesliearkorful.com

A widget to compare two stacked widgets by dragging a slider thumb.

WASM-ready
$ flutter pub add juxtapose
Source repository

What it does

A Flutter widget that allows users to compare two stacked widgets by dragging a slider thumb horizontally or vertically. It reveals either side of the slider depending on the drag position.

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

Use it when

  • You want to compare before-and-after images
  • You need a slider interface to reveal parts of stacked widgets

Skip it when

  • You are looking for complex state management or networking solutions

Strengths

  • Supports both horizontal and vertical directions
  • Customizable divider, thumb size, and colors

Weaknesses

  • Inner widgets expand by default unless wrapped in specific widgets like Center

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Juxtapose(
  backgroundColor: Color(0xFF012747),
  foregroundWidget: Image.asset("flutter-logo.png"),
  backgroundWidget: Image.asset("flutter-logo-stroke.png"),
)

Alternatives

Packages that do the same job and could replace juxtapose.