AnimatedRatingBar constructor
const
AnimatedRatingBar({})
AnimatedRatingBar can be used for rating which enhaces User Experince
by displaying beautiful animation like glows and sparks.
Exmple:
return AnimatedRatingBar(
activeFillColor: Theme.of(context).colorScheme.inversePrimary,
strokeColor: Theme.of(context).colorScheme.inversePrimary,
initialRating: 0,
height: 60,
width: MediaQuery.of(context).size.width,
animationColor: Theme.of(context).colorScheme.inversePrimary,
onRatingUpdate: (rating) {
debugPrint(rating.toString());
},
);
Implementation
const AnimatedRatingBar(
{super.key,
this.initialRating = 0.0,
this.height,
this.width,
this.activeFillColor,
this.strokeColor,
required this.onRatingUpdate,
this.animationColor});