Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draggable Tinder-like cards #75

Open
EricPHassey opened this issue Apr 12, 2019 · 3 comments
Open

Draggable Tinder-like cards #75

EricPHassey opened this issue Apr 12, 2019 · 3 comments

Comments

@EricPHassey
Copy link

Looking to be able to swipe vertically and horizontally on a card. Looks like right now can only do one or the other.

Any solution for this?

@lavanoped
Copy link

You have to edit the package library itself, you have to modify any code that depends on the scrollDirection within swiper.dart and custom_layout.dart (+onPanStart, _onPanUpdate, +onPanEnd,etc)

Happy hacking!

@lostcodingsomewhere
Copy link

@EricPreventa hi eric, did you end up implementing this? I'm looking to do the same

@EricPHassey
Copy link
Author

@lostcodingsomewhere I did some type of implementation of this. Was quite easy, I ended up just using the flutter package of using "Draggable"

Something rough like:

Draggable(
child: imageCard,
feedback: imageCard,
childWhenDragging: Container(width: 0, height: 0),
onDragEnd: (details)
{
// Logic to determine when a swipe is considered to be completed.
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants