rating_bar
A customizable Rating Bar for flutter with half rating support
- Stars
- 10
- Forks
- 5
- Last push (UTC)
- Mar 1, 2020
- Project status
- Active
Original README
English project snapshot. Visit GitHub for the latest content.
rating_bar
A customizable Rating Bar for flutter with half rating support
Installation
Add this to your package's pubspec.yaml file
dependencies:
...
rating_bar: ^latest.version.here
Usage
First import paging.dart
import 'package:rating_bar/rating_bar.dart';
onRatingChanged callback returns current rating which is a double,
when the rating has changed.
RatingBar(
onRatingChanged: (rating) => setState(() => _rating = rating),
filledIcon: Icons.star,
emptyIcon: Icons.star_border,
halfFilledIcon: Icons.star_half,
isHalfAllowed: true,
aligns: Alignment.centerLeft,
filledColor: Colors.green,
emptyColor: Colors.redAccent,
halfFilledColor: Colors.amberAccent,
size: 48,
),
You can also use read-only rating bar widget
RatingBar.readOnly(
initialRating: 3.5,
isHalfAllowed: true,
aligns: Alignment.centerLeft,
halfFilledIcon: Icons.star_half,
filledIcon: Icons.star,
emptyIcon: Icons.star_border,
),
Screenshots
License
LanguagesDartObjective-CJava
Categories
Dependencies used
Dependency list 2 items
- flutter
{"sdk":"flutter"} - flutter_testDevelopment
{"sdk":"flutter"}
How do I choose a repository?
Start with your use case, compare repository activity, and check the original project before adopting it.
- Search by repository name, owner or description, then narrow the results by topic.
- Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
- Read the README, license and issues on GitHub before using a project.
Sources and maintenance
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- jajpa/rating_bar · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Directory maintained by Ducafecat ↗