ff_stars 是一個 Flutter 套件,提供可自訂的星級評價元件,用於使用者回饋。設計上兼具強大與易用性,讓開發者能建立具備廣泛自訂選項的互動式星級評分。此套件支援 Android、iOS、Web、macOS、Windows 與 Linux 多個平台,確保跨裝置的介面一致性。非常適合應用程式中需要直覺視覺回饋的評論、評分與回饋表單。擁有乾淨且結構良好的程式碼,並持續維護,透過簡單卻有效率的評分互動提升使用者參與度。
適用情境
用戶評論系統
產品評分介面
反饋收集表單
調查應用
互動式應用程式評估
內容評分
主要特色
高度可自訂的星星外觀
跨平台相容性
透過 pub 簡單整合
支援輕點評分互動
可設定的星星數量
流暢的動畫效果
適合對象
需要使用者評分的應用
反饋驅動的應用程式
電商平台
基於評論的服務
尋求可重用組件的UI設計師
使用建議
需要基本的Flutter知識
自定義可能需要類似 CSS 的樣式
限於星級反饋
不適用於非評分輸入
可能需要額外的狀態管理
依賴外部GitHub倉庫
原始 README
以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。
ff_stars
Function Introduction
Support the full star, half-star arbitrary star.
Support Click & Drag and adjust to set the minimum points.
Support custom stars pictures, size, spacing, quantity.
Support choice uses "Enter Act (default)" or "Since the Four Raidth (Recent Value)" to take the final value.
Show results
Some network environments may not be able to view the renderings.
Git picture is slower, download Demo directly.
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)// Introduceimport'package:ff_stars/ff_stars.dart';