Skip to content

A flutter package for displaying detailed star reviews

License

Notifications You must be signed in to change notification settings

shinriyo/starreviews

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

starreviews

A flutter package for displaying detailed star reviews

Install

dependencies:  
  starreviews: ^1.0.1
$  flutter pub get
import  'package:starreviews/starreviews.dart';

Usage

List<String> _names = ['Star 5', 'Star 4', 'Star 3', 'Star 2', 'Star 1'];  
List<double> _values = [0.5, 0.2, 0.8, 0.5, 0.1];
StarReviews(  
  total: 20,  
  starNames: _names,  
  values: _values,  
  showPercentage: true,  
)

Customization

Here is a list of properties available to customize the widget:

Name Type Description
total int total numbers of reviews
showHeader bool if false, hides header
starNames List list of star names (max 5)
percentageStyle TextStyle style applied to percentage
showPercentage bool if false, hides percentage
valueColor Color color of the progressbar
progressBarBackgroundColor Color color of the progress bar background
values List list of review values as double

Contributions

Contributions of any kind are more than welcome! Feel free to fork and improve in any way you want, make a pull request, or open an issue.

About

A flutter package for displaying detailed star reviews

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 92.3%
  • Kotlin 3.7%
  • Swift 3.7%
  • Objective-C 0.3%