Skip to content
pubscout

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.

WASM-ready
$ flutter pub add rating_bar
Source repository

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.