juxtapose 1.2.0 copy "juxtapose: ^1.2.0" to clipboard
juxtapose: ^1.2.0 copied to clipboard

A widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider, either horizontally or vertically.

example/lib/main.dart

import 'package:juxtapose/juxtapose.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Juxtapose Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Juxtapose(
        foregroundWidget: Container(
          alignment: Alignment.center,
          color: Colors.blue,
          child: Text(
            "Juxtapose",
            style: TextStyle(color: Colors.white, fontSize: 40),
          ),
        ),
        backgroundWidget: Container(
          alignment: Alignment.center,
          color: Colors.pink,
          child: Text(
            "Juxtapose",
            style: TextStyle(color: Colors.black, fontSize: 40),
          ),
        ),
      ),
    );
  }
}
95
likes
130
pub points
66%
popularity

Publisher

verified publisherlesliearkorful.com

A widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider, either horizontally or vertically.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on juxtapose