패키지, 저장소 및 앱 카테고리 검색

flutter_emoji_feedback 표지
패키지 상세v1.0.3

flutter_emoji_feedback

사용자로부터 피드백을 받기 위한 완전히 사용자 정의 가능한 위젯입니다. 사용자의 기분을 파악하거나 경험을 평가하는 데 유용합니다!

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
382
좋아요
60
Pub 점수
150

패키지 설치

flutter pub add flutter_emoji_feedback

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

이모지로 사용자 피드백을 수집하도록 설계된 사용자 정의 가능한 Flutter 위젯입니다. 개발자가 앱에 감정 기반 피드백 메커니즘을 쉽게 통합할 수 있도록 하여 사용자 경험과 만족도를 평가하는 데 도움을 줍니다. 이 위젯은 매우 구성 가능하며 다양한 이모지 세트와 상호작용 스타일을 지원합니다. 설문 조사, 앱 리뷰 또는 여러 플랫폼에서 실시간 감성 추적에 적합합니다.

사용 사례

  • 사용자 감정 수집
  • 앱 경험 개선
  • 빠른 피드백 수집
  • 사용자 만족도 설문조사
  • 실시간 감정 추적
  • 상호작용 후 피드백

주요 기능

  • 완전히 사용자 정의 가능한 이모지 세트
  • 사용자 정의 가능한 피드백 응답
  • 크로스 플랫폼 지원
  • 간단한 통합
  • 반응형 디자인
  • 확장 가능한 UI

적합한 대상

  • 모바일 및 웹 애플리케이션
  • 사용자 경험 연구
  • 앱에서 피드백 수집
  • 제품 개선 이니셔티브
  • 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.