fancy_rating_bar 0.0.2
fancy_rating_bar: ^0.0.2 copied to clipboard
A beautiful, highly customizable Flutter rating widget with stunning gradients, animations, and glassmorphic effects.
Fancy Rating Dialog #
A beautiful, highly customizable Flutter rating dialog with stunning gradients, animations, and glassmorphic effects.
Features #
✨ Stunning Themes
- 6 gorgeous pre-built gradient themes
- Aurora
- Sunset
- Ocean
- Forest
- Midnight
- Neon
- Glassmorphic background effects
- Smooth animations and transitions
🎨 Rich Customization
- Multiple rating modes (stars/emojis)
- Combined rating & review workflow
- Custom titles and messages
- Configurable max review length
Installation #
Add this to your package's pubspec.yaml
file:
dependencies:
fancy_rating_dialog: ^1.0.0
Usage #
void showRatingDialog() {
showDialog(
context: context,
barrierDismissible: true,
builder: (context) => FancyRatingBar(
theme: RatingThemes.aurora, // Choose from 6 beautiful themes
ratingIconType: RatingIconType.stars, // stars or hearts
useEmojiRating: false, // true for emoji rating
mode: DialogMode.both, // rating, review, or both
onSubmit: (data) async {
print('Rating: ${data['rating']}');
print('Review: ${data['review']}');
},
),
);
}
Customization #
FancyRatingBar(
theme: RatingThemes.aurora,
ratingIconType: RatingIconType.stars,
useEmojiRating: false,
mode: DialogMode.both,
title: 'Custom Title',
subtitle: 'Custom Subtitle',
reviewTitle: 'Custom Review Title',
reviewSubtitle: 'Custom Review Subtitle',
maxLength: 500,
onSubmit: (data) async {
// Handle the rating and review
},
)
Available Themes #
RatingThemes.aurora
- Purple and pink gradientsRatingThemes.sunset
- Orange and red gradientsRatingThemes.ocean
- Blue and cyan gradientsRatingThemes.forest
- Green and emerald gradientsRatingThemes.midnight
- Dark and elegant gradientsRatingThemes.neon
- Vibrant neon gradients
Screenshots #
Aurora Theme #
[screenshots/aurora_rating.png] [screenshots/aurora_review.png]
Sunset Theme #
[screenshots/sunset_rating.png] [screenshots/sunset_review.png]
Ocean Theme #
[screenshots/ocean_rating.png] [screenshots/ocean_review.png]
Forest Theme #
[screenshots/forest_rating.png] [screenshots/forest_review.png]
Midnight Theme #
[screenshots/midnight_rating.png] [screenshots/midnight_review.png]
Neon Theme #
[screenshots/neon_rating.png] [screenshots/neon_review.png]
Additional Features #
- Smooth animations and transitions
- Progress bar for multi-step flows
- Hover effects and scaling animations
- Success state animations
- Beautiful gradient buttons
- Backdrop blur effects
Contributing #
Contributions are welcome! If you find a bug or want to add a feature, please raise an issue or submit a PR.
License #
MIT License
Copyright (c) 2024 [Your Name]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.