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.
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.
- menu_bar
A customizable application menu bar widget with submenus for Flutter desktop apps.
74Compare - page_view_indicators
Customizable page indicators for PageViews including circles, arrows, progress, and steps.
48Compare - uiblock
Easily block or unblock the UI with loading states in Flutter apps.
48Compare - flutter_earth_globe
An interactive and fully customizable 3D Globe widget written in pure Dart.
80Compare
Works with
Packages commonly used together with flutter_rating_bar: ones it builds on, ones built on it, and its own family.
- rate_my_appBuilt on flutter_rating_barAsk users to rate your app if custom conditions like install time or launches are met.
- form_builder_extra_fieldsBuilt on flutter_rating_barAdditional ready-made form input fields for the flutter_form_builder package
- rating_dialogBuilt on flutter_rating_barA customizable Star Rating Dialog package for Flutter
- senior_design_systemBuilt on flutter_rating_barA Flutter UI kit providing Senior Design System components for mobile apps.
- rating_summaryBuilt on flutter_rating_barWidget to display product ratings, average scores, and star breakdowns.