All Projects → HeavenOSK → flutter_swipable_stack

HeavenOSK / flutter_swipable_stack

Licence: MIT License
A widget for stacking cards, which users can swipe horizontally and vertically with beautiful animations like Tinder UI.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to flutter swipable stack

Tinderonline
Find out which of your friends are online on Tinder
Stars: ✭ 155 (+192.45%)
Mutual labels:  tinder
React Native Pulse Loader
tinder-like loader for your react native app
Stars: ✭ 250 (+371.7%)
Mutual labels:  tinder
TinderBotz
Automated Tinder bot and scraper using selenium in python.
Stars: ✭ 265 (+400%)
Mutual labels:  tinder
Glinapppurchase
Tinder Style InApp Purchase Banner
Stars: ✭ 180 (+239.62%)
Mutual labels:  tinder
Swiftui Animation
SwiftUI Animation
Stars: ✭ 233 (+339.62%)
Mutual labels:  tinder
twinder
Unofficial Tinder client for Windows desktop
Stars: ✭ 18 (-66.04%)
Mutual labels:  tinder
Swipeablecards
Stars: ✭ 136 (+156.6%)
Mutual labels:  tinder
tinder clone
For learning .
Stars: ✭ 151 (+184.91%)
Mutual labels:  tinder
Deep Learning Tinder
Simple Tinder algorithm able to swipe left and right based on the recommendations of a pre-trained deep neural network (Machine Learning).
Stars: ✭ 242 (+356.6%)
Mutual labels:  tinder
Flare
A full-fledged unofficial Angular-based Tinder web client
Stars: ✭ 23 (-56.6%)
Mutual labels:  tinder
Tinderclone
Tinder App Clone
Stars: ✭ 196 (+269.81%)
Mutual labels:  tinder
Get Me A Date
😍 Help me get a 💘 date tonight 🌛
Stars: ✭ 228 (+330.19%)
Mutual labels:  tinder
roove
Dating app based on firebase services and facebook login. MVVM-Kotlin-RxJava-Dagger-Databinding
Stars: ✭ 55 (+3.77%)
Mutual labels:  tinder
Placeholderview
This library provides advance views for lists and stacks. Some of the views are build on top of RecyclerView and others are written in their own. Annotations are compiled by annotation processor to generate bind classes. DOCS -->
Stars: ✭ 2,104 (+3869.81%)
Mutual labels:  tinder
tribbble
Tinder for Dribbble
Stars: ✭ 89 (+67.92%)
Mutual labels:  tinder
Cardstackview
📱Tinder like swipeable card view for Android
Stars: ✭ 1,850 (+3390.57%)
Mutual labels:  tinder
kikder-dating-swipe-app
❤️ Kik App, you know? 💑 Kikder™ is a dating webapp that integrates the Kik, uses the HorOrNot game and the Tinder swipe. The F.A.S.T. Game Approach! The web app uses a custom lightweight MVC framework.
Stars: ✭ 21 (-60.38%)
Mutual labels:  tinder
react-tinder-card
A npm react module for making react elements swipeable like in the dating app tinder.
Stars: ✭ 184 (+247.17%)
Mutual labels:  tinder
tcard
Flutter tinder like cards
Stars: ✭ 132 (+149.06%)
Mutual labels:  tinder
TinderUserProfile
Tinder/Bumble like user image with user details scroll animation
Stars: ✭ 21 (-60.38%)
Mutual labels:  tinder

swipable_stack

A widget for stacking cards, which users can swipe horizontally and vertically with beautiful animations like Tinder UI.

demo

(Sorry, the package name swipable_stack is typo of swipeable stack)

Usage

builder

A SwipableStack uses a builder to display widgets.

SwipableStack(
  builder: (context, properties) {
    return Image.asset(imagePath);
  },
),

onSwipeCompleted

You can get completion event with onSwipeCompleted.

SwipableStack(
  onSwipeCompleted: (index, direction) {
    print('$index, $direction');
  },
)

overlayBuilder

You can show overlay on the front card with overlayBuilder.

SwipableStack(
  overlayBuilder: (context, properties) {
    final opacity = min(properties.swipeProgress, 1.0);
    final isRight = properties.direction == SwipeDirection.right;
    return Opacity(
      opacity: isRight ? opacity : 0,
      child: CardLabel.right(),
    );
  },
)

controller

SwipableStackController allows you to control swipe action & also rewind recent action.

final controller = SwipableStackController();

SwipableStack(
  controller:controller,
  builder: (context, properties) {
    return Image.asset(imagePath);
  },
);
controller.next(
  swipeDirection: SwipeDirection.right,
);
controller.rewind();

SwipableStackController provides to access currentIndex of SwipableStack.

final controller = SwipableStackController();
controller.addListener(() {
  print('${_controller.currentIndex}');
});

onWillMoveNext

You can also restrict user actions according to index or action with onWillMoveNext.

SwipableStack(
  onWillMoveNext: (index, direction) {
    final allowedActions = [
      SwipeDirection.right,
      SwipeDirection.left,
    ];
    return allowedActions.contains(direction);
  },
);

swipeAssistDuration

You can set the speed the user is able to swipe through Widgets with the swipeAssistDuration.

SwipableStack(
  swipeAssistDuration: Duration(milliseconds: 100),
)

The default is 650ms.

stackClipBehaviour

You can set the clipBehaviour of the stack with the stackClipBehaviour.
Change it to Clip.none to exceed the boundaries of parent widget size.

SwipableStack(
  stackClipBehaviour: Clip.none,
)

The default is Clip.hardEdge.

allowVerticalSwipe

Disable vertical swipe with allowVerticalSwipe.
Changing to false disable vertical swipe capabilities

SwipableStack(
  allowVerticalSwipe: false,
)

The default is true.

swipeTopAnchor

Set the swipe anchor with swipeAnchor with the following enum SwipeAnchor.top : card rotation on bottom and anchored on top SwipeAnchor.bottom : card rotation on top and anchored on bottom

SwipableStack(
  swipeAnchor: SwipeAnchor.top,
)

The default is SwipeAnchor.top.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].