v1.0.4+2smooth_star_rating_null_safety
一个平滑的评分条
38喜欢 12近 30 天下载130Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个平滑的评分条
以下为英文项目原文快照,最新内容请访问 GitHub。
A Star rating with touch and swipe rate enabled
In your flutter project add the dependency:
dependencies:
...
smooth_star_rating: 1.0.4+2
import 'package:smooth_star_rating/smooth_star_rating.dart';
SmoothStarRating(
allowHalfRating: false,
onRatingChanged: (v) {
rating = v;
setState(() {});
},
starCount: 5,
rating: rating,
size: 40.0,
filledIconData: Icons.blur_off,
halfFilledIconData: Icons.blur_on,
color: Colors.green,
borderColor: Colors.green,
spacing:0.0
)
allowHalfRating - Whether to use whole number for rating(1.0 or 0.5)
onRatingChanged(int rating) - Rating changed callback
starCount - The maximum amount of stars
rating - The current value of rating
size - The size of a single star
color - The body color of star
borderColor - The border color of star
spacing - Spacing between stars(default is 0.0)
filledIconData - Full Rated Icon
halfFilledIconData - Half Rated Icon
defaultIconData - Default Rated Icon
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗