ff_stars 1.2.0 ff_stars: ^1.2.0 copied to clipboard
Star Evaluation Components. Powerful and easy to use. Highly customized.
ff_stars #
Function Introduction #
- Support the full star, half-star arbitrary star.
- Support Click & Drag and adjust to set the minimum points.
- Support custom stars pictures, size, spacing, quantity.
- Support choice uses "Enter Act (default)" or "Since the Four Raidth (Recent Value)" to take the final value.
Show results #
- Some network environments may not be able to view the renderings.
- Git picture is slower, download Demo directly.
- If you encounter "Could not build the application for the simulator", please use "flutter clean".
pub #
// integrated
dependencies:
ff_stars: ^1.2.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';
Instructions #
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: 4.3,
// starCount: 5,
// starHeight: 40,
// starWidth: 40,
// starMargin: 20,
// justShow: true,
// rounded: true,
// followChange: true,
),
GitHub #
https://github.com/flutting/ff_stars