Skip to content

Commit

Permalink
fix: Change stroke align for border side in Badge
Browse files Browse the repository at this point in the history
  • Loading branch information
yadaniyil committed Nov 24, 2023
1 parent f767271 commit c16b203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/badge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,16 @@ class BadgeState extends State<Badge> with TickerProviderStateMixin {
}

Widget _getBadge() {
final borderSide = widget.badgeStyle.borderSide
.copyWith(strokeAlign: widget.badgeStyle.borderSide.strokeAlign + 0.1);
final border = widget.badgeStyle.shape == BadgeShape.circle
? CircleBorder(
side: widget.badgeStyle.borderGradient == null
? widget.badgeStyle.borderSide
? borderSide
: BorderSide.none)
: RoundedRectangleBorder(
side: widget.badgeStyle.borderGradient == null
? widget.badgeStyle.borderSide
? borderSide
: BorderSide.none,
borderRadius: widget.badgeStyle.borderRadius,
);
Expand Down

0 comments on commit c16b203

Please sign in to comment.