搜索插件、代码仓与 APP 分类

插件详情v0.2.0

flutter_tindercard

Tinder(TanTan) 卡片小部件,快速在您的 Flutter 应用中实现高质量的滑动卡片组件。

近 30 天下载
261
喜欢数
145
Pub 分数
40

安装插件

flutter pub add flutter_tindercard

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

flutter_tindercard 是一个 Flutter 包,提供了一个高质量的可滑动卡片小部件,灵感来自 Tinder 和 TanTan。它使开发者能够以最少的设置快速在应用中实现流畅、交互式的卡片滑动功能。该包支持直观的手势操作,如向左或向右滑动,并提供视觉反馈和动画效果,带来精致的用户体验。非常适合用于约会类应用、产品展示或任何需要基于卡片导航的界面。

适合场景

  • 约会应用界面
  • 产品或商品发现
  • 用户资料浏览
  • 交互式内容滑块
  • 游戏化用户引导

主要特点

  • 流畅的滑动动画
  • 手势识别左右滑动
  • 可自定义的卡片外观
  • 实时滑动反馈
  • 与现有 Flutter 项目的轻松集成

适合对象

  • 开发基于滑动的用户界面的开发者
  • 需要卡片翻转交互的应用
  • 原型设计交互布局
  • 带有用户偏好流程的移动应用

使用建议

  • 有限的平台特定自定义
  • 无内置数据管理
  • 需要手动处理滑动结果
  • 未针对大型数据集进行优化
  • 依赖外部动画性能

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

flutter_tindercard

Pub Closed

Tinder/TanTan Card Widget.

Screenshots

screenshot

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

Async Example

See Here

所属分类

源码仓库

使用此插件的项目

暂无相关数据。