搜尋套件、儲存庫與 APP 分類

flutter_flip_card 封面
套件詳情v0.0.6

flutter_flip_card

一個提供翻轉卡片動畫的組件。可用於隱藏和顯示產品的詳細資訊。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
6780
喜歡數
160
Pub 分數
150

安裝套件

flutter pub add flutter_flip_card

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,可實現翻轉卡片動畫,讓使用者透過平滑的翻轉效果揭露隱藏內容,例如產品詳情。適用於資訊分層顯示的互動式介面,支援 Android、iOS、Web、macOS、Windows 與 Linux 多個平台。此元件輕量且易於整合,適合電商應用、作品集或任何需要吸引人過渡效果的介面。

適用情境

  • 產品詳情揭示
  • 互動學習卡片
  • 投資組合項目展示
  • 遊戲卡翻轉
  • 使用者資料切換

主要特色

  • 平滑翻轉動畫
  • 可自定義的正面和背面
  • 跨平台支援
  • 與現有組件的輕鬆整合
  • 可設定的翻轉方向與速度

適合對象

  • 電子商務應用程式
  • 教育類應用
  • 互動式使用者介面原型
  • 行動與Web儀表板
  • 遊戲化介面

使用建議

  • 可能影響低階裝置的效能
  • 超出基本翻轉效果的自訂功能有限
  • 需要仔細處理狀態管理
  • 不適合複雜的多層動畫
  • 最適合簡單、單一用途的翻轉互動

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_flip_card

A widget that does transition between two children in a flipping manner.

FlipCard GestureFlipCard
FlipCard GestureFlipCard

How to Use

To use flutter_flip_card, first start by importing the package.

import 'package:flutter_flip_card/flutter_flip_card.dart';

Currently Available Methods

  • FlipCard A component that provides a flip card animation

  • GestureFlipCard A component that provides a gsture(Swipe) flip card animation

FlipCard

    FlipCard(
        rotateSide: RotateSide.bottom,
        onTapFlipping: false, //When enabled, the card will flip automatically when touched.
        axis: FlipAxis.horizontal,
        controller: con1,
        frontWidget: Center(
        child: Container(
            height: 200,
            width: 140,
            child: Image.asset(
                    'image/01.png',
                    fit: BoxFit.fitHeight)
                )
            ),
        backWidget: Container(
            height: 200,
            width: 140,
            child: Image.asset(
                    `'image/02.jpg',
                    fit: BoxFit.fitHeight)
            )
        )
        
    final controller = FlipCardController();
    // Flip the card programmatically
    controller.flipcard();

GestureFlipCard

    GestureFlipCard(
            animationDuration: const Duration(milliseconds: 300),
            axis: FlipAxis.horizontal,
            controller:cong // used to ccontrol the Gesture flip programmatically
            enableController : false // if [True] if you need flip the card using programmatically
            frontWidget: Center(
                child: Container(
                  width: 300,
                  height: 200,
                  child: Image.asset(
                    'image/011.jpg',
                    fit: BoxFit.contain,
                  ),
                ),
              ),
            backWidget: Container(
                width: 300,
                height: 200,
                child: Image.asset(
                  'image/11.jpg',
                  fit: BoxFit.contain,
                ),
            ),
        ),
Project Created & Maintained By
Gunanithi

Passionate #Flutter, #Android Developer. #UI Designer.

linkedin medium

Notes

Please open an issue if you find any bugs.

Donate

You like the package ? Buy me a coffee :)

Buy Me A Coffee

所屬分類

原始碼儲存庫

使用此套件的專案