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

ff_stars 封面
套件詳情v3.0.0

ff_stars

星級評價組件。功能強大且易於使用。高度自訂。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
331
喜歡數
6
Pub 分數
160

安裝套件

flutter pub add ff_stars

套件介紹

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

ff_stars 是一個 Flutter 套件,提供可自訂的星級評價元件,用於使用者回饋。設計上兼具強大與易用性,讓開發者能建立具備廣泛自訂選項的互動式星級評分。此套件支援 Android、iOS、Web、macOS、Windows 與 Linux 多個平台,確保跨裝置的介面一致性。非常適合應用程式中需要直覺視覺回饋的評論、評分與回饋表單。擁有乾淨且結構良好的程式碼,並持續維護,透過簡單卻有效率的評分互動提升使用者參與度。

適用情境

  • 用戶評論系統
  • 產品評分介面
  • 反饋收集表單
  • 調查應用
  • 互動式應用程式評估
  • 內容評分

主要特色

  • 高度可自訂的星星外觀
  • 跨平台相容性
  • 透過 pub 簡單整合
  • 支援輕點評分互動
  • 可設定的星星數量
  • 流暢的動畫效果

適合對象

  • 需要使用者評分的應用
  • 反饋驅動的應用程式
  • 電商平台
  • 基於評論的服務
  • 尋求可重用組件的UI設計師

使用建議

  • 需要基本的Flutter知識
  • 自定義可能需要類似 CSS 的樣式
  • 限於星級反饋
  • 不適用於非評分輸入
  • 可能需要額外的狀態管理
  • 依賴外部GitHub倉庫

原始 README

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

ff_stars

Function Introduction

  1. Support the full star, half-star arbitrary star.
  2. Support Click & Drag and adjust to set the minimum points.
  3. Support custom stars pictures, size, spacing, quantity.
  4. Support choice uses "Enter Act (default)" or "Since the Four Raidth (Recent Value)" to take the final value.

Show results

  1. Some network environments may not be able to view the renderings.
  2. Git picture is slower, download Demo directly.
  3. If you encounter "Could not build the application for the simulator", please use "flutter clean".
pub
// integrated
dependencies:
  ff_stars: ^3.0.0 // Support null safety (continuous maintenance)
  ff_stars: ^0.1.6 // Do not support null safety (follow-up no longer maintenance)

// Introduce
import 'package:ff_stars/ff_stars.dart';

Instructions

FFStars(
  normalStar: Image.asset("assets/normalImage.png"),
  selectedStar: Image.asset("assets/selectedImage.png"),
  starsChanged: (realStars, selectedStars) {
    print("real: $selectedStars, final: $realStars");
  },
  step: 0.01,
  defaultStars: 3.5,
  // starCount: 5,
  // starHeight: 40,
  // starWidth: 40,
  // starMargin: 20,
  // justShow: true,
  // rounded: true,
  // followChange: true,
),

GitHub

https://github.com/flutting/ff_stars

所屬分類

原始碼儲存庫

使用此套件的專案