flutter_star 0.0.2 flutter_star: ^0.0.2 copied to clipboard
This is a scoring widget with star.
一、描述
[1] . 可定义星星的进度情况
[1] . 可定义星星的角数、颜色、大小
配置Star类字段
名称 | 类型 | 功能 | 备注 |
---|---|---|---|
progress | double | 填充的进度 | [0,1] |
num | int | 星星的角数 | 大于3 |
fat | double | 星星的胖瘦 | (0,1] |
emptyColor | Color | 星星的色 | - |
fillColor | Color | 星星的填充色 | - |
size | double | 星星的大小 | - |
二、展示
1. 进度填充:progress
2. 星星的角数:num
3. 星星的胖瘦:fat
4. 星星的颜色:fillColor和emptyColor
附赠显示星星评分
StarScore(
score: 4.8,
star: Star(
fillColor: Colors.tealAccent,
emptyColor: Colors.grey.withAlpha(88)),
)