# flutter_tindercard **Repository Path**: xiaofan232/flutter_tindercard ## Basic Information - **Project Name**: flutter_tindercard - **Description**: A Tinder(探探) Card Widget build with flutter. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-11 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flutter_tindercard [![Pub](https://img.shields.io/pub/v/flutter_tindercard.svg?color=%233CB371)](https://pub.dartlang.org/packages/flutter_tindercard) [![Closed](https://img.shields.io/github/issues-closed-raw/ShaunRain/flutter_tindercard.svg?color=%23FF69B4)](https://github.com/ShaunRain/flutter_tindercard/issues?q=is%3Aissue+is%3Aclosed) Tinder/TanTan Card Widget. ## Screenshots ![screenshot](./assets/example_tindercard.gif) ## Getting Started 1. Depend on it by adding this to your pubspec.yaml file: ```flutter_tindercard: ^x.x.x``` 2. Import it: ```import 'package:flutter_tindercard.dart'``` 3. Add TinderSwapCard in your widget layout and write the single card layout builder you need, then you get a Tinder(探探) like swap card widget! 4. Use `CardSwipeCompleteCallback` for the swiped orientation and index! 5. Use `CardController` to trigger swap from outside. Init a CardController as param for widget, and invoke method `triggerLeft/Right` of your `CardController` to trigger swipe! 6. Use `CardDragUpdateCallback` to get swiping card's detail. ## Example [See Here](./example/example/lib) ## Async Example [See Here](./example/async_data/lib)