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

flutter_emoji_feedback 封面
插件详情v1.0.3

flutter_emoji_feedback

一个完全可自定义的控件,用于接收用户的反馈。可用于获取用户情绪、评估用户体验等!

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
382
喜欢数
60
Pub 分数
150

安装插件

flutter pub add flutter_emoji_feedback

插件介绍

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

一个可自定义的 Flutter 小部件,旨在通过表情符号收集用户反馈。它使开发者能够轻松地在其应用中集成基于情绪的反馈机制,帮助评估用户体验和满意度。该小部件高度可配置,支持多种表情符号集和交互样式。适用于调查、应用评分或跨多个平台的实时情感追踪。

适合场景

  • 收集用户情感
  • 改进应用体验
  • 收集快速反馈
  • 用户满意度调查
  • 实时情绪追踪
  • 互动后反馈

主要特点

  • 完全可自定义的表情符号集
  • 可配置的反馈响应
  • 跨平台支持
  • 简单集成
  • 响应式设计
  • 可扩展的用户界面

适合对象

  • 移动和网络应用
  • 用户体验研究
  • 应用中的反馈收集
  • 产品改进计划
  • UX设计师和开发人员

使用建议

  • 需要针对特定用例进行定制
  • 限制为表情符号输入
  • 可能需要额外的逻辑来处理数据
  • 不适合用于详细的文字反馈
  • 依赖外部状态管理来获取结果

原始 README

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

flutter_emoji_feedback

pub package GitHub CI

A fully customizable widget to receive feedback from your users. Useful to get the user's mood, evaluate their experience, and more!

📺 What's new?

You can now use animated lottie files (json files only) for emoji presets, or the provided notoAnimatedEmojis preset. (see #3)

🚀 Getting started

Install from pub
flutter pub add flutter_emoji_feedback

📔 Usage

Import flutter_emoji_feedback:

import 'package:flutter_emoji_feedback/flutter_emoji_feedback.dart';
EmojiFeedback(
  initialRating: 4, // Set to null (default) for no initial rating
  animDuration: const Duration(milliseconds: 300), // Duration of the animation
  curve: Curves.bounceIn, // Curve of the animation
  inactiveElementScale: .5, // Scale of the inactive element
  onChanged: (value) {
    // Callback when the user change the value of the emoji
  },
  onChangeWaitForAnimation: true, // Wait for the animation of the emoji to complete before calling `#onChanged`
  // Other parameters
);
Parameters
Parameter name Description Type
onChangeWaitForAnimation If true, the emoji's animation will finish before calling #onChange bool
initialRating Sets the initial rating, if null, there will be no initial rating int?
tapScale The scale for when the user holds down the emoji, set to inactiveElementScale for none double
animDuration Duration of the animation Duration
curve Curve of the animation Curve
inactiveElementScale Scale of the inactive element double
onChanged Function called when an item is selected. Values goes from 1 to preset.length ValueChanged<int?>?
emojiPreset List of emojis. Available presets: classicEmojiPreset, flatEmojiPreset, threeDEmojiPreset, notoAnimatedEmojis, notoEmojis. You can create your own presets, see Defining Presets. EmojiPreset
presetBuilder Custom emoji widget builder EmojiBuilder?
showLabel Whether the label should be displayed or not bool
labelTextStyle Style of the emoji label TextStyle?
customLabels Define your custom labels. Useful if you wish to use the predefined emojis with custom labels List<String>?
inactiveElementBlendColor Custom blend color for inactive elements Color?
spaceBetweenItems Space between items double
elementSize Size of emoji elements double?
labelPadding Label padding EdgeInsetsGeometry
enableFeedback Enable haptic feedback bool
minRating Minimum rating int
maxRating Maximum rating int
onChangeWaitForAnimation If true, the onChange callback will be called after the animation is completed bool
🎨 Defining presets

You can easily create presets using the StaticEmojiPreset and AnimatedEmojiPreset, which hold the emojis.

// Defining a static emoji preset using SVG files
// Replace the `image` with your SVG file path
const myStaticEmojiPreset = StaticEmojiPreset([
  StaticEmoji(
    image: 'assets/images/emoji1.svg',
    value: 1,
  ),
  StaticEmoji(
    image: 'assets/images/emoji2.svg',
    value: 2,
  ),
  StaticEmoji(
    image: 'assets/images/emoji3.svg',
    value: 3,
  ),
  StaticEmoji(
    image: 'assets/images/emoji4.svg',
    value: 4,
  ),
  StaticEmoji(
    image: 'assets/images/emoji5.svg',
    value: 5,
  ),
]);

// Defining an animated emoji preset using Lottie files
// Replace the `animation` with the path to your Lottie file
const myAnimatedEmojiPreset = AnimatedEmojiPreset([
  AnimatedEmoji(
    animation: 'assets/animations/emoji1.json',
    value: 1
  ),
  AnimatedEmoji(
    animation: 'assets/animations/emoji2.json',
    value: 2
  ),
  AnimatedEmoji(
    animation: 'assets/animations/emoji3.json',
    value: 3
  ),
  AnimatedEmoji(
    animation: 'assets/animations/emoji4.json',
    value: 4
  ),
  AnimatedEmoji(
    animation: 'assets/animations/emoji5.json',
    value: 5,
  ),
]);

📝 License

This project is licensed under the MIT License - see the LICENSE file for details

📄 Changelog

See CHANGELOG.md for details.

📄 Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 Contributors

📄 Acknowledgments

Attribution

This project uses Animated Noto Emoji, which is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

© Google LLC. Licensed under CC BY 4.0.

Sponsor

If you find this project useful, you can sponsor me.

Or you can

Buy Me A Coffee

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。