animated_rating_feedback 0.0.1
animated_rating_feedback: ^0.0.1 copied to clipboard
A Flutter package to create animated feedback rating systems, with support for emojis, icons, and dynamic feedback options. It also includes text-to-speech (TTS) functionality to speak ratings and f [...]
📦 animated_feedback_rating with TTS 🔊 #
A beautiful, animated Flutter package to collect ratings and short feedback easily with TTS! 🔊 Supports emoji, icons, and dynamic feedback options with smooth animations ✨
✨ Features #
- ⭐ Different rating types (star, smiley, thumb, heart, etc.)
- 📝 Short, predefined feedback options after selecting a rating
- 🌟 Simple controller and model-based structure
- 🎨 Fully customizable
- 📱 Smooth animations
- 🔥 Easy integration -🎤 Text to Speech (TTS) functionality to speak feedback and rating choices
📸 Screenshot
[Screenshot 2] [Screenshot 3] [Screenshot 4]▶ Demo Video
Check out the demo videos for the package:
This video demonstrates the Text to Speech feature in action with Emoji.
This video demonstrates the Text to Speech feature in action with Star. #
🚀 Getting Started #
Add dependency in your pubspec.yaml:
dependencies:
animated_feedback_rating: ^0.0.1
Then run:
flutter pub get
🛠️ How to Use #
1. Initialize Controller #
final controller = RatingController<String>(
ratingOptions: [
RatingOption(id: '1', label: 'Terrible', value: 'terrible', emoji: '😞', icon: Icons.sentiment_very_dissatisfied),
RatingOption(id: '2', label: 'Bad', value: 'bad', emoji: '😟', icon: Icons.sentiment_dissatisfied),
RatingOption(id: '3', label: 'Okay', value: 'okay', emoji: '😐', icon: Icons.sentiment_neutral),
RatingOption(id: '4', label: 'Good', value: 'good', emoji: '😊', icon: Icons.sentiment_satisfied),
RatingOption(id: '5', label: 'Excellent', value: 'excellent', emoji: '😍', icon: Icons.sentiment_very_satisfied),
],
feedbackOptionsMap: {
'1': [FeedbackItem(id: 'f1', text: 'Not helpful'), FeedbackItem(id: 'f2', text: 'Too slow')],
'5': [FeedbackItem(id: 'f3', text: 'Excellent help!'), FeedbackItem(id: 'f4', text: 'Very fast')],
},
);
2. Use Widget #
AnimatedFeedbackRating<String>(
controller: controller,
)
RatingController #
ratingOptions→ List of selectable rating optionsfeedbackMap→ Map of feedback options based on ratingsetRating,toggleFeedback,clear
RatingOption #
id,label,value,emoji,icon
FeedbackItem #
id,text
📹 Video Demo #
(Optional: Add video URL after you record!)
🤝 Contributing #
Pull requests are welcome!
Feel free to open an issue if you find a bug or want a feature!
📄 License #
This project is licensed under the MIT License.

