搜索插件、代码仓与 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 多个平台,确保在不同设备上保持一致的 UI。非常适合需要直观视觉反馈的应用程序中的评论、评分和反馈表单。代码简洁、结构清晰,并持续维护,通过简单而有效的评分交互提升用户参与度。

适合场景

  • 用户评论系统
  • 产品评分界面
  • 反馈收集表单
  • 调查应用
  • 交互式应用程序评估
  • 内容评分

主要特点

  • 高度可定制的星星外观
  • 跨平台兼容性
  • 通过 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

所属分类

源码仓库

使用此插件的项目