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

image_stack 封面
套件詳情v2.1.1

image_stack

image_stack 是一個純 Dart 套件,用於在 Flutter 中建立影像堆疊。此套件提供了一個小部件,讓您輕鬆建立符合您需求的影像堆疊。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
3330
喜歡數
158
Pub 分數
150

安裝套件

flutter pub add image_stack

套件介紹

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

image_stack 是一個純 Dart 的 Flutter 套件,提供一個小部件,可輕鬆建立影像堆疊,非常適合以層疊格式顯示多個個人檔案圖片或頭像。它支援 Android、iOS、Web、macOS、Windows 和 Linux 等多種平台。此套件輕量且設計簡潔,讓開發者能快速實作聊天頭像或團隊成員顯示等視覺群組,無需複雜設定。

適用情境

  • 在聊天介面中顯示群組頭像
  • 為團隊或群組設定檔建立頭像堆疊
  • 可視化協作應用中的用戶存在狀態
  • 透過分層頭像設計增強使用者介面
  • 建構社交媒體個人資料部分
  • 在即時應用中顯示連接的使用者

主要特色

  • 基於小部件的簡單實現
  • 支援多平台部署
  • 可自訂的圖層疊加和間距
  • 輕量且無依賴
  • 透過 pub add 輕鬆整合
  • 跨裝置的響應式設計

適合對象

  • Flutter 開發人員建構聊天或社交應用
  • 需要視覺頭像分組的設計人員
  • 需要使用者存在指示器的應用程式
  • 專注於乾淨、極簡的使用者介面元件的專案
  • 建立協作或社群平台的團隊

使用建議

  • 僅限基本堆疊;無進階動畫
  • 不支援動態載入或錯誤處理的內建功能
  • 需要手動管理影像來源
  • 未針對非常大的圖像集進行優化
  • 最適合小型團體(3-6 張圖片)
  • 可能需要額外的樣式來處理複雜的佈局

原始 README

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

image_stack

image_stack is a pure dart package for creating image stack in Flutter. This package give you a widget to easily create image stack for your need.

UI created by this package is mainly found in profile picture stacks in so many apps but it can be used at any place where you feel it will look good.

Pub Package: image_stack

Medium Article: Building profile image stack in Flutter

Installation

In the dependencies: section of your pubspec.yaml, add the following line:

image_stack: <latest_version>

Usage

import 'package:image_stack/image_stack.dart';

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    List<string> images = ["image1Link", "image2Link", "image3Link", "image4Link"];
    return ImageStack(
            imageList: images,
            totalCount: images.length // If larger than images.length, will show extra empty circle
            imageRadius: 25, // Radius of each images
            imageCount: 3, // Maximum number of images to be shown in stack
            imageBorderWidth: 3, // Border width around the images
        );
  }
}

Example

View the Flutter app in the example directory.

Screenshot

Image Stack Screenshot

Contributors

所屬分類

原始碼儲存庫

使用此套件的專案