Skip to content
pubscout

flutter_rating_bar

4.0.1, released 5 years ago by sarbagyastha.com.np

A fully customizable rating bar and indicator widget supporting fractions and vertical layout.

WASM-ready
$ flutter pub add flutter_rating_bar
Source repository

What it does

Provides customizable rating bars and indicators that allow users to select ratings or display existing ones. It supports fractional ratings, vertical layouts, custom item widgets, and RTL mode.

AI-written summary of version 4.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display product or content ratings to users.
  • You need an interactive star or custom icon rating input in forms.

Skip it when

  • You need complex non-rating input form elements like sliders or date pickers.

Strengths

  • Supports any custom widget for rating items and different items per position.
  • Supports fractional ratings and vertical or horizontal orientations.
  • Includes a rating bar indicator for read-only displays.

Weaknesses

  • Limited to rating-related use cases.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
RatingBar.builder(
   initialRating: 3,
   minRating: 1,
   direction: Axis.horizontal,
   allowHalfRating: true,
   itemCount: 5,
   itemPadding: EdgeInsets.symmetric(horizontal: 4.0),
   itemBuilder: (context, _) => Icon(
     Icons.star,
     color: Colors.amber,
   ),
   onRatingUpdate: (rating) {
     print(rating);
   },
);

Alternatives

Packages that do the same job and could replace flutter_rating_bar.

Works with

Packages commonly used together with flutter_rating_bar: ones it builds on, ones built on it, and its own family.