Skip to content

Commit

Permalink
bugfix: removed border color when borderColor property is not informed
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Amaro committed Sep 9, 2024
1 parent d5b1367 commit 9d8f579
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

- [DSButton] Removed border color when `borderColor` property is not informed.

## 0.2.0

- [DSEndCallsMessageBubble] Fixed layout when used by small screens.
Expand Down
8 changes: 5 additions & 3 deletions lib/src/widgets/buttons/ds_button.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ class DSButton extends StatelessWidget {
: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadius),
),
side: BorderSide(
color: borderColor ?? backgroundColor,
),
side: borderColor != null
? BorderSide(
color: borderColor!,
)
: null,
),
child: DSAnimatedSize(
child: Row(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: blip_ds
description: Blip Design System for Flutter.
version: 0.2.0
version: 0.2.1
homepage: https://github.com/takenet/blip-ds-flutter#readme
repository: https://github.com/takenet/blip-ds-flutter

Expand Down

0 comments on commit 9d8f579

Please sign in to comment.