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

套件詳情v0.2.0+1

flutter_stack_card

Stack Card Widget 是在 Flutter 中建立交換卡片的最快方式。

近 30 天下載
12
喜歡數
29
Pub 分數
40

安裝套件

flutter pub add flutter_stack_card

套件介紹

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

Flutter Stack Card 是一個輕量且高效能的套件,讓開發者能夠在 Flutter 應用中快速實作可滑動的卡片介面。它提供一種基於堆疊的卡片佈局,使用者可向左或向右滑動卡片,非常適合用於類似 Tinder 的資訊流或任務管理介面等互動式 UI。此套件注重效能與易用性,僅需最少設定即可實現順暢的動畫與觸控操作。它能無縫整合至現有的 Flutter 專案中。

適用情境

  • Tinder風格的滑動介面
  • 任務或待辦事項清單滑動
  • 圖片或內容輪播
  • 使用者設定檔選擇
  • 互動測驗或調查流程

主要特色

  • 快速順暢的滑動動畫
  • 最小化樣板程式碼
  • 支援左右滑動手勢
  • 與 Flutter 的輕鬆整合
  • 可自訂的卡片外觀

適合對象

  • 初階到中階 Flutter 開發者
  • 需要可滑動卡片互動的應用
  • 原型設計互動式 UI
  • 簡單的手勢驅動介面

使用建議

  • 超出基本滑動行為的自訂功能有限
  • 不支援垂直滑動的內建支援
  • 可能需要額外的邏輯來處理複雜的狀態管理
  • 未針對無分頁的大卡資料集進行優化

原始 README

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

Flutter Stack Card

Stack Card Widget is fastest way to create swap card in flutter.

Screenshots

StackType.middle StackType.right

Usage

StackCard.builder(
    itemCount: /* Item Count */,
    displayIndicator: /* Flag to display the indicator */,
    displayIndicatorBuilder: /* Customize the indicator */,
    onSwap: (index) {
        /* listen for swapping */
    },
    itemBuilder: (context, index) {
        /* item builder */
    }
)

Example

Please find example in here: Example

所屬分類

依賴

依賴清單 1 項

  • flutter_slider_indicator^0.1.1

原始碼儲存庫

使用此套件的專案

暫無相關資料。