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

插件详情v1.0.3

flutter_flip_view

一个全新的 Flutter 插件。

近 30 天下载
41
喜欢数
28
Pub 分数
30

安装插件

flutter pub add flutter_flip_view

插件介绍

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

一个 Flutter 插件,可实现交互式卡片翻转动画,非常适合创建具有正反两面的动态 UI 元素。它支持流畅的过渡效果,专为需要视觉深度或分层内容的界面设计。该包轻量且易于集成到现有的 Flutter 项目中。特别适用于教育类应用、闪存卡或任何通过并排信息展示提升用户体验的应用。

适合场景

  • 创建用于闪存卡的翻转卡片
  • 构建交互式产品预览
  • 设计教育测验
  • 增强登录屏幕
  • 显示双内容卡片

主要特点

  • 平滑翻转动画
  • 支持自定义正面和背面内容
  • 与 Flutter 小部件的轻松集成
  • 轻量且高性能
  • 可配置的翻转方向和速度

适合对象

  • 教育类应用程序开发者
  • 寻求交互元素的UI设计师
  • 使用卡片布局的应用程序创作者
  • 开发交互式教程的开发者
  • 专注于打造用户参与体验的团队

使用建议

  • 仅限基本翻转机制
  • 无内置手势识别
  • 需要手动处理状态管理
  • 未针对复杂的嵌套布局进行优化
  • 不支持简单的翻转以外的3D效果

原始 README

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

flutter_flip_view

This is a flutter Widget base on pure Dart code that provides 3D flip card visuals.

simplecard

customlayout

Usage

add package in your pubspec.yaml

dependencies:
   flutter_flip_view: ^latest_version

This is a simple usage

import 'package:flutter_flip_view/flutter_flip_view.dart';

FlipView(
  animationController: _curvedAnimation,
  front: Container(
    width: 300,
    height: 500,
    color: Colors.amber,
    alignment: Alignment.center,
    child: Text('Front'),
  ),
  back: Container(
    width: 300,
    height: 500,
    color: Colors.blueGrey,
    alignment: Alignment.center,
    child: Text('Back'),
  ),
)

You can get more usage case in main.dart and custom_layout_example.dart

Pay attention

If the widgets you are using within the flip_view are wrapped in a Card widget or a Material widget, you should set the Card (or Material) property clipBehavior to Clip.hardEdge or something other than Clip.none.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

所属分类

源码仓库

使用此插件的项目