搜索插件、代码仓与 APP 分类

rating_and_feedback_collector 封面
插件详情v0.0.4

rating_and_feedback_collector

可自定义的表情符号、图标、自定义图像评分条,支持半星/全星评分和动态反馈提示。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
81
喜欢数
37
Pub 分数
150

安装插件

flutter pub add rating_and_feedback_collector

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个可定制的 Flutter 包,用于收集用户评分和反馈,支持表情符号、图标和自定义图像。它支持半星和整星评分选择、动态反馈提醒,并在各平台上实现响应式设计。非常适合希望通过视觉反馈机制实现直观用户互动的应用程序。该包易于集成,支持移动、Web 和桌面等多种平台。开发者可以根据应用品牌和用户体验需求,自定义外观和行为。

适合场景

  • 用户体验提升
  • 应用商店评分收集
  • 客户满意度调查
  • 应用内反馈表单
  • 产品功能评估
  • 实时反馈提醒

主要特点

  • 基于表情符号的评分指标
  • 自定义图像和图标支持
  • 半星评分精度
  • 动态反馈警报系统
  • 跨平台兼容性
  • 可配置的用户界面主题

适合对象

  • 移动和网络应用
  • UX研究工具
  • 反馈驱动的产品开发
  • 客户服务集成
  • 交互式调查组件

使用建议

  • 需要定制以实现品牌一致
  • 可能需要额外的样式来处理复杂的布局
  • 限于评分相关的互动
  • 依赖于平台特定的渲染一致性
  • 最适合频繁用户交互的应用程序

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Customizable rating bars with emojis, icons, custom images with half/full rating and dynamic feedback alerts.

Features

  • Custom icon rating
  • Smiley emojis rating
  • Custom image rating
  • Feedback alert box for low ratings
  • Redirect to store for high ratings
  • Customizable UI & contents
  • Submission callback

Getting started

Add dependency to your pubspec.yaml file & run Pub get

dependencies:
  rating_and_feedback_collector: ^0.0.4

And import package into your class file

import 'package:rating_and_feedback_collector/rating_and_feedback_collector.dart';

Usage

double _rating = 0.0;
  1. Rating Bar with Icons (with full & half rating option)
  RatingBar(
    iconSize: 40, // Size of the rating icons
    allowHalfRating: true, // Allows selection of half ratings
    filledIcon: Icons.star, // Icon to display for a filled rating unit
    halfFilledIcon: Icons.star_half, // Icon to display for a half-filled rating unit
    emptyIcon: Icons.star_border, // Icon to display for an empty rating units
    filledColor: Colors.amber, // Color of filled rating units
    emptyColor: Colors.grey, // Color of empty rating units
    currentRating: _rating, // Set initial rating value
    onRatingChanged: (rating) { // Callback triggered when the rating is changed
      setState(() { _rating = rating; });
    },
  ),
  1. Rating bar default emoji images
  RatingBarEmoji(
    imageSize: 45, // Size of image in the rating bar.
    currentRating: _rating, // Set initial rating value
    onRatingChanged: (rating) { // Callback triggered when the rating is changed
      setState(() { _rating = rating;  });
    },
  ),
  1. Rating Bar with Custom Image
  RatingBarCustomImage(
    imageSize: 45, // Size of image in the rating bar.
    currentRating: _rating, // Set initial rating value
    activeImages: const [
                      AssetImage('assets/Images/ic_angry.png'),
                      AssetImage('assets/Images/ic_sad.png'),
                      AssetImage('assets/Images/ic_neutral.png'),
                      AssetImage('assets/Images/ic_happy.png'),
                      AssetImage('assets/Images/ic_excellent.png'),  ],
    deActiveImages: const [
                        AssetImage('assets/Images/ic_angryDisable.png'),
                        AssetImage('assets/Images/ic_sadDisable.png'),
                        AssetImage('assets/Images/ic_neutralDisable.png'),
                        AssetImage('assets/Images/ic_happyDisable.png'),
                        AssetImage('assets/Images/ic_excellentDisable.png'),  ],
    onRatingChanged: (rating) { // Callback triggered when the rating is changed
      setState(() { _rating = rating; });
    },
  ),

Properties

Property Types Description
currentRating double set initial rating value
filledIcon (only for RatingBar) IconData? Icon to display for a filled rating unit
halfFilledIcon (only for RatingBar) IconData? Icon to display for a half-filled rating unit.
emptyIcon (only for RatingBar) IconData? Icon to display for an empty rating units.
filledColor (only for RatingBar) Color? Color of filled rating units.
emptyColor (only for RatingBar) Color? Color of empty rating units.
iconSize double? Size of the rating icons.
onRatingChanged return double Callback triggered when the rating is changed.
allowHalfRating (only for RatingBar) bool? Allows selection of half ratings.
isGoogleFont bool? set it true if you want to use google fonts else false
fontFamilyName String? set your custom font family name or google font family name
feedbackUIType FeedbackUIType? want to show feedback box in alert view or in bottom sheet
showFeedbackForRatingsLessThan double? Threshold rating value below which feedback box is shown.
feedbackBoxTitle String? Title for the feedback box
lowRatingFeedbackTitle String? Title for feedback options in the low rating feedback box.
lowRatingFeedback List<String>? List of feedback strings for low ratings.
showDescriptionInput bool? Option to show input box for user descriptions in the feedback dialog.
descriptionTitle String? Title for the description input box in the feedback dialog.
descriptionPlaceHolder String? Placeholder text for the description input box.
descriptionCharacterLimit int? Character limit for the description input.
submitButtonTitle String? Title for the submit button in the feedback dialog.
onSubmitTap returns selectedFeedback(with index & text) & description Callback function triggered on submission of feedback.
showRedirectToStoreForRatingsGreaterThan double? Threshold rating value above which the app redirects to the store for a review.
androidPackageName String? Android package name for the app, used in the store redirect.
iosBundleId String? iOS bundle ID for the app, used in the store redirect.
innerWidgetsBorderRadius double? Border radius for the feedback dialog widgets.
alertDialogBorderRadius double? Border radius for the feedback dialog.

Code Contributors

Rating And Feedback Collector contributors

Made with ❤️ by the DevCodeSpace

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目

暂无相关数据。