rating_bar 0.1.0 copy "rating_bar: ^0.1.0" to clipboard
rating_bar: ^0.1.0 copied to clipboard

outdated

A customizable Rating Bar for flutter

rating_bar #

A customizable Rating Bar for flutter

pub package

Installation #

Add this to your package's pubspec.yaml file

dependencies:
  ...
  paging: ^latest.version.here

Usage #

First import paging.dart

  import 'package:rating_bar/rating_bar.dart';

In the RatingBar widget onRatingChanged callback returns current rating which is a double whenever the rating has changed.

  RatingBar(
    onRatingChanged: (rating) => setState(() => _rating = rating),
    filledIcon: Icons.star,
    emptyIcon: Icons.star_border,
    halfFilledIcon: Icons.star_half,
    isHalfAllowed: true,
    filledColor: Colors.green,
    emptyColor: Colors.redAccent,
    halfFilledColor: Colors.amberAccent, 
    size: 48,
  ),

Screenshots #

License #

MIT License

28
likes
0
pub points
87%
popularity

Publisher

unverified uploader

A customizable Rating Bar for flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on rating_bar