flutter_simple_rating_bar

Last updated:

0 purchases

flutter_simple_rating_bar Image
flutter_simple_rating_bar Images
Add to Cart

Description:

flutter simple rating bar

flutter_simple_rating_bar #
A Star rating Supports half rate and full rate (1.0 or 0.5),
the code is simple and easy , you can understand it very clearly.
Getting Started #
In your flutter project add the dependency:
dependencies:
...
flutter_simple_rating_bar: 0.0.3
copied to clipboard
Usage example #
import 'package:flutter_simple_rating_bar/flutter_simple_rating_bar.dart';

copied to clipboard
RatingBar(
rating: 3,
icon:Icon(Icons.star,size:40,color: Colors.grey,),
starCount: 5,
spacing: 5.0,
size: 40,
isIndicator: false,
allowHalfRating: true,
onRatingCallback: (double value,ValueNotifier<bool> isIndicator){
print('Number of stars--> $value');
//change the isIndicator from false to true ,the RatingBar cannot support touch event;
isIndicator.value=true;
},
color: Colors.amber,
)
copied to clipboard
Constructor parameters #
rating - The current value of rating
icon - select your icon
starCount - The maximum amount of stars
spacing - Spacing between stars(default is 0.0)
allowHalfRating - Whether to use whole number for rating(1.0 or 0.5)
onRatingCallback(double rating,ValueNotifier<bool> isIndicator)
- Rating changed callback
size - The size of a single star
color - The body color of star
copied to clipboard
Screenshots #

Finally: #
Thanking for everything...
thangmam/smoothratingbar
sarbagyastha/flutter_rating_bar

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.