rating_bar
1.0.2, released 7 weeks ago by joshuamatta.dev
A customizable Flutter rating bar supporting half stars, precise fractional values, custom items and RTL layouts.
What it does
Provides a widget to display and capture user ratings with high visual flexibility. Supports half‑star snapping, arbitrary fractional ratings, custom item builders, and right‑to‑left layouts.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a rating input UI with custom icons or emojis
- Precise fractional ratings are required
- The app must support RTL languages
Skip it when
- A simple numeric input or slider suffices
- You need a full UI kit rather than a single widget
Strengths
- Highly customizable appearance
- Precise fractional and half‑star support
- RTL layout support
- Multiple constructors for custom widgets
Weaknesses
- Only provides rating UI, no validation or data handling
- No built‑in theming beyond colors
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
RatingBar(
initialRating: 3.5,
isHalfAllowed: true,
filledIcon: Icons.star,
emptyIcon: Icons.star_border,
halfFilledIcon: Icons.star_half,
filledColor: Colors.amber,
onRatingChanged: (rating) => print(rating),
);Alternatives
Packages that do the same job and could replace rating_bar.
- menu_bar
A customizable application menu bar widget with submenus for Flutter desktop apps.
74Compare - animated_rating_stars
A customizable animated star rating bar widget for Flutter.
46Compare - flutter_custom_tab_bar
Custom tab bar widget with multiple indicator styles including vertical round, standard, linear, and round.
44Compare - rating_dialog
A customizable Star Rating Dialog package for Flutter
50Compare