Skip to content

Commit

Permalink
Merge pull request #34 from bchecksum/patch-1
Browse files Browse the repository at this point in the history
borderRadius must not be null.
  • Loading branch information
yadaniyil authored Dec 7, 2020
2 parents 3fe8789 + a0de217 commit 6c2e3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/badge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class BadgeState extends State<Badge> with SingleTickerProviderStateMixin {
}
final border = type == MaterialType.circle
? null
: RoundedRectangleBorder(borderRadius: widget.borderRadius);
: RoundedRectangleBorder(borderRadius: widget.borderRadius ?? BorderRadius.zero);

Widget badgeView() {
return AnimatedOpacity(
Expand Down

0 comments on commit 6c2e3e8

Please sign in to comment.