v1.0.4+2smooth_star_rating_null_safety
부드러운 평점 바
38좋아요 730일 다운로드130Pub 점수
AndroidiOSWebmacOSWindowsLinux
부드러운 평점 바
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 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
alt text
alt text