From a0de2179115e7b3c7b512ba3cea3dd060c66f516 Mon Sep 17 00:00:00 2001 From: bchecksum Date: Mon, 26 Oct 2020 20:45:40 +0300 Subject: [PATCH] borderRadius must not be null. There is a little assertion error. Related RoundedRectangleBorder argument that borderRadius. --- lib/src/badge.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/badge.dart b/lib/src/badge.dart index 04b3220..efac452 100644 --- a/lib/src/badge.dart +++ b/lib/src/badge.dart @@ -108,7 +108,7 @@ class BadgeState extends State with SingleTickerProviderStateMixin { } final border = type == MaterialType.circle ? null - : RoundedRectangleBorder(borderRadius: widget.borderRadius); + : RoundedRectangleBorder(borderRadius: widget.borderRadius ?? BorderRadius.zero); Widget badgeView() { return AnimatedOpacity(