rate

Last updated:

0 purchases

rate Image
rate Images
Add to Cart

Description:

rate

Rate #
A simple star rating compnent
Getting Started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
rate: ^0.0.1
copied to clipboard
Import it:
import 'package:rate/rate.dart';
copied to clipboard
Examples #

Basic Rate Component #
const Rate()
copied to clipboard
Change size, color and click behaviors #
Rate(
iconSize: 40,
color: Colors.green,
allowHalf: true,
allowClear: true,
initialValue: 3.5,
readOnly: false,
onChange: (value) => print(value),
),
copied to clipboard

Fully customize icon #
Rate(iconBuilder: _customIconBuilder),

Icon _customIconBuilder(double value, int index) {
var icon =
value > index.toDouble() ? Icons.favorite : Icons.favorite_border;

return Icon(icon, color: Colors.red);
}
copied to clipboard

License:

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

Customer Reviews

There are no reviews.