搜尋套件、儲存庫與 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 要求,客製化外觀與行為。

適用情境

  • 使用者體驗增強
  • 應用商店評分收集
  • 客戶滿意度調查
  • 應用內反饋表單
  • 產品功能評估
  • 即時反饋提醒

主要特色

  • 基於表情符號的評分指標
  • 自定圖像和圖示支援
  • 半星評分精度
  • 動態反饋警示系統
  • 跨平台相容性
  • 可設定的使用者介面主題

適合對象

  • 行動和網路應用
  • 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。