• Stars
    star
    857
  • Rank 51,483 (Top 2 %)
  • Language
    Dart
  • License
    MIT License
  • Created almost 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A flutter package which makes it easier to display the difference between two images.

👏 Before After Open Source Love License Build Status Awesome Flutter FlutterWeekly

Say Thanks! Twitter

A flutter package which makes it easier to display the differences between two images..

The source code is 100% Dart, and everything resides in the /lib folder.

Live Demo: https://xsahil03x.github.io/before_after

Show some ❤️ and star the repo to support the project

GitHub stars GitHub forks GitHub watchers GitHub followers
Twitter Follow

🔅 Gifs

Screenshot Screenshot Screenshot

💻 Installation

In the dependencies: section of your pubspec.yaml, add the following line:

Version

dependencies:
  before_after: <latest version>

Usage

Import this class

import 'package:before_after/before_after.dart';

before after

BeforeAfter(
  value: value,
  before: Image.asset('assets/after.png'),
  after: Image.asset('assets/before.png'),
  onValueChanged: (value) {
    setState(() => this.value = value);
  },
)

🎨 Customization and Attributes

Field Type Description
before Widget The widget to be displayed before the slider.
after Widget The widget to be displayed after the slider.
direction SliderDirection The drag direction of the slider.
height double? The height of the BeforeAfter widget.
width double? The width of the BeforeAfter widget.
trackWidth double? The width of the slider track.
trackColor Color? The color of the slider track.
hideThumb bool Whether to hide the slider thumb.
thumbHeight double? The height of the slider thumb.
thumbWidth double? The width of the slider thumb.
thumbColor Color? The color of the slider thumb.
overlayColor MaterialStateProperty<Color?>? The highlight color that's typically used to indicate that the slider thumb is focused.
thumbDecoration BoxDecoration? The decoration of the slider thumb.
divisions int? The number of discrete divisions on the slider.
value double The position of the slider, ranging from 0.0 to 1.0.
onValueChanged ValueChanged? A callback function that is called when the value of the slider changes.
thumbDivisions int? The number of discrete divisions on the slider thumb.
thumbPosition double The position of the slider thumb, ranging from 0.0 to 1.0.
onThumbPositionChanged ValueChanged? A callback function that is called when the position of the thumb changes.
focusNode FocusNode? The focus node for the widget.
autofocus bool Whether the widget should be focused automatically.
mouseCursor MouseCursor? The cursor for a mouse pointer when it enters or hovers over the widget.

📃 License

MIT License

More Repositories

1

giffy_dialog

A Flutter package for a quick and handy giffy dialog.
Dart
651
star
2

fancy_on_boarding

Fancy OnBoarding Screen Library
Dart
361
star
3

super_enum

Create super-powered dart enums similar to sealed classes in Kotlin
Dart
118
star
4

flutter_network_handling

Handling Network Calls like a Pro in Flutter
Dart
94
star
5

multi_trigger_autocomplete

A flutter widget to add trigger based autocomplete functionality to your app.
Dart
85
star
6

Flutter-News-Reader

News Reader App to fetch Articles from different news channels using Flutter.
Dart
85
star
7

super_paging

Add pagination or load more or infinite scrolling functionality to your flutter list view with ease.
Dart
29
star
8

BmiChecker

A basic flutter application to check BMI of an person.
Dart
17
star
9

MovieMania

An Android app to view details about the top rated and new movies. It uses themoviedb.org to fetch details about the movies.
Java
16
star
10

Shared-Animation

This project implements (Custom Dialog + Shared Transition).
Java
8
star
11

jwelery_kart

Dart
8
star
12

flutter_phone_auth

Dart
8
star
13

MemeLord

An Android app which provides a healthy competition between the users to post Memes and rank to the top of the leader board and become the ultimate MEME LORD.
Java
8
star
14

BigChef

Android App to view recipes and their steps + Ingredients (Exoplayer)
Java
7
star
15

Flutter-Basic-Template

Dart
5
star
16

FAFlutterPackages

Dart
5
star
17

BuildItBigger

Udacity Nanodegree Project 4
Java
4
star
18

CircularRevealDemo

Java
4
star
19

BasicAppLock

Java
4
star
20

The-Audical-App

Kotlin
4
star
21

LauncherHomeLock

Java
4
star
22

NewsReader

An app by which you can read latest news
Java
4
star
23

stream_feed_dart

Dart
3
star
24

Easyly

A personal assistant for your day to day tasks.
Java
3
star
25

GithubActionTest

Dart
3
star
26

Simple-Firebase-Email-Authentication

Firebase Email Authentication+Verification
Java
3
star
27

MotionLayoutPlayground

Kotlin
3
star
28

FaCozy

Sample native android project which communicates with a flutter module
Dart
3
star
29

Scheduler

silent scheduler
Java
3
star
30

Pratra

Simple Food Ordering App...
Java
3
star
31

NavigationDrawerWithTabActivity

One Of the most used activity all over the world which contains a navigation drawer and a tab Activity.
Java
3
star
32

PicknDrop

An app to check route between two different places
Java
3
star
33

PikaPlay

2
star
34

ds_algo

Dart
2
star
35

Chromium-Android

1
star
36

in_app_review

Kotlin
1
star