We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 430b060 + 3ddac2e commit 84e66bbCopy full SHA for 84e66bb
lib/src/badge.dart
@@ -227,12 +227,16 @@ class BadgeState extends State<Badge> with SingleTickerProviderStateMixin {
227
shape: border,
228
elevation: widget.elevation,
229
child: Container(
230
- decoration: BoxDecoration(
231
- gradient: widget.gradient,
232
- shape: widget.shape == BadgeShape.circle
233
- ? BoxShape.circle
234
- : BoxShape.rectangle,
235
- ),
+ decoration: widget.shape == BadgeShape.circle
+ ? BoxDecoration(
+ gradient: widget.gradient,
+ shape: BoxShape.circle,
+ )
+ : BoxDecoration(
236
237
+ shape: BoxShape.rectangle,
238
+ borderRadius: widget.borderRadius,
239
+ ),
240
child: Padding(
241
padding: widget.padding,
242
child: widget.badgeContent,
0 commit comments