// integrated
dependencies:
ff_stars: ^3.0.0 // Support null safety (continuous maintenance)
ff_stars: ^0.1.6 // Do not support null safety (follow-up no longer maintenance)
// Introduce
import 'package:ff_stars/ff_stars.dart';
FFStars(
normalStar: Image.asset("assets/normalImage.png"),
selectedStar: Image.asset("assets/selectedImage.png"),
starsChanged: (realStars, selectedStars) {
print("real: $selectedStars, final: $realStars");
},
step: 0.01,
defaultStars: 3.5,
// starCount: 5,
// starHeight: 40,
// starWidth: 40,
// starMargin: 20,
// justShow: true,
// rounded: true,
// followChange: true,
),
https://github.com/flutting/ff_stars