Search packages, repositories and app categories

rating_summary cover
Package detailsv1.0.4

rating_summary

Create a summary statistic Widget to display the rating and average rating of a product.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
324
Likes
54
Pub points
160

Install package

flutter pub add rating_summary

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The rating_summary package provides a customizable widget for displaying product rating statistics, including individual ratings and average ratings. It is designed to enhance user feedback interfaces by presenting rating data in a clean, intuitive format across multiple platforms. The widget supports dynamic updates and integrates seamlessly into Flutter applications. Built with simplicity and performance in mind, it enables developers to quickly implement professional-looking rating summaries without extensive custom coding.

Use cases

  • Displaying product ratings in e-commerce apps
  • Showing average ratings on review pages
  • Enhancing user feedback interfaces
  • Integrating rating stats in mobile and web apps
  • Visualizing customer satisfaction metrics
  • Creating interactive review dashboards

Key features

  • Pre-built rating summary UI
  • Supports average rating display
  • Customizable appearance
  • Cross-platform compatibility
  • Easy integration with Flutter
  • Dynamic data updates

Suitable for

  • E-commerce application developers
  • Review and feedback system designers
  • Mobile and web app creators
  • UI/UX designers using Flutter
  • Developers seeking quick rating widgets

Considerations

  • Requires Flutter SDK setup
  • Limited to rating-specific use cases
  • No built-in rating input functionality
  • Depends on external GitHub repository
  • May need additional styling for complex designs

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Rating Summary Widget

Create a summary statistic Widget to display the rating and average rating of a product.

Screenshot of the raring summary widget with the average rewiew indicator Screenshot of the raring summary widget without the average rewiew indicator

Installing:

  1. Add the dependency in your pubspec.yaml file.
dependencies:
  rating_summary: ^1.0.2+1
  1. Import the rating_summary package.
import 'package:rating_summary/rating_summary.dart';

Usage

RatingSummary(
  counter: 13,
  average: 3.846,
  showAverage: true,
  counterFiveStars: 5,
  counterFourStars: 4,
  counterThreeStars: 2,
  counterTwoStars: 1,
  counterOneStars: 1,
)
Parameters
Parameter Description Type Default Required
counter The total number of ratings. int - ✓
average The average rating. double 0.0 -
showAverage Show the average rating indicator. bool true -
averageStyle The style of the average rating indicator. TextStyle TextStyle(fontWeight: FontWeight.bold, fontSize: 40) -
counterFiveStars The number of 5 star ratings. int 0 -
counterFourStars The number of 4 star ratings. int 0 -
counterThreeStars The number of 3 star ratings. int 0 -
counterTwoStars The number of 2 star ratings. int 0 -
counterOneStars The number of 1 star ratings. int 0 -
labelCounterFiveStars The label of the 5 star rating. Widget Text( '5', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold)) -
labelCounterFourStars The label of the 4 star rating. Widget Text( '4', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold)) -
labelCounterThreeStars The label of the 3 star rating. Widget Text( '3', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold)) -
labelCounterTwoStars The label of the 2 star rating. Widget Text( '2', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold)) -
labelCounterOneStars The label of the 1 star rating. Widget Text( '1', style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold)) -
labelCounterFiveStarsStyle The style of the 5 star rating label. TextStyle TextStyle(fontSize: 14, fontWeight: FontWeight.bold) -
labelCounterFourStarsStyle The style of the 4 star rating label. TextStyle TextStyle(fontSize: 14, fontWeight: FontWeight.bold) -
labelCounterThreeStarsStyle The style of the 3 star rating label. TextStyle TextStyle(fontSize: 14, fontWeight: FontWeight.bold) -
labelCounterTwoStarsStyle The style of the 2 star rating label. TextStyle TextStyle(fontSize: 14, fontWeight: FontWeight.bold) -
labelCounterOneStarsStyle The style of the 1 star rating label. TextStyle TextStyle(fontSize: 14, fontWeight: FontWeight.bold) -
label The label of the rating summary. String "Rating" -
labelStyle The style of the label. TextStyle TextStyle(fontWeight: FontWeight.w600) -
color The primary color of the rating summary. Color Colors.amber -
backgroundColor The background color of the rating summary. Color Color(0xFFEEEEEE) -
space The space between the label and the bar. double 20 -
thickness The thickness of the bar. doubel 10 -
starColor The color of stars. Color Colors.amber -
alignment The alignment of rating summary. CrossAxisAlignment CrossAxisAlignment.center -

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.