From 3ddac2e2b0d192f8f5d7cfcb8ab0f95a7ca45748 Mon Sep 17 00:00:00 2001 From: Umigishi-Aoi Date: Fri, 11 Mar 2022 16:53:31 +0900 Subject: [PATCH] add borderRadius in BoxDecoration in _badgeViewGradient() in lib/src/badge.dart --- lib/src/badge.dart | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/src/badge.dart b/lib/src/badge.dart index 24e32e1..e022fb0 100644 --- a/lib/src/badge.dart +++ b/lib/src/badge.dart @@ -227,12 +227,16 @@ class BadgeState extends State with SingleTickerProviderStateMixin { shape: border, elevation: widget.elevation, child: Container( - decoration: BoxDecoration( - gradient: widget.gradient, - shape: widget.shape == BadgeShape.circle - ? BoxShape.circle - : BoxShape.rectangle, - ), + decoration: widget.shape == BadgeShape.circle + ? BoxDecoration( + gradient: widget.gradient, + shape: BoxShape.circle, + ) + : BoxDecoration( + gradient: widget.gradient, + shape: BoxShape.rectangle, + borderRadius: widget.borderRadius, + ), child: Padding( padding: widget.padding, child: widget.badgeContent,