v3.0.0ff_stars
Star Evaluation Components. Powerful and easy to use. Highly customized.
6Likes 38830-day downloads160Pub points
AndroidiOSWebmacOSWindowsLinux
Flutter的星星评价组件.
{"sdk":"flutter"}{"sdk":"flutter"}English project snapshot. Visit GitHub for the latest content.
// 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