Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
thangmam committed Mar 29, 2019
2 parents 52f71bb + 394aabd commit 2968057
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## [1.0.2] - 29/03/2019
### assertion added for checking nullability of rating variable which causes the exception "The method '_greaterThanFromInteger' was called on null."

## [1.0.1] - 21/11/2018
### Added click-to-rate feature
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ A Star rating with touch and swipe rate enabled
* Change star body and boundary colors independently
* Control size of the star rating
* Set your desired total Star count
* Now Supports click-to-rate
* Supports click-to-rate
## Getting Started

In your flutter project add the dependency:
```
dependencies:
...
smooth_star_rating: 1.0.1
smooth_star_rating: 1.0.2
```

## Usage example
Expand Down
4 changes: 3 additions & 1 deletion lib/smooth_star_rating.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class SmoothStarRating extends StatelessWidget {
this.color,
this.borderColor,
this.size,
this.allowHalfRating = true});
this.allowHalfRating = true}) {
assert(this.rating != null);
}

Widget buildStar(BuildContext context, int index) {
Icon icon;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: smooth_star_rating
description: A smooth rating bar
version: 1.0.1
version: 1.0.2
author: Thangmam <[email protected]>
homepage: https://github.com/thangmam/smoothratingbar.git

Expand Down

0 comments on commit 2968057

Please sign in to comment.