From 9d8f579a67a5933c0f5e65b560de9d97bb2ef093 Mon Sep 17 00:00:00 2001 From: Marcelo Amaro Date: Sun, 8 Sep 2024 21:27:32 -0300 Subject: [PATCH] bugfix: removed border color when `borderColor` property is not informed --- CHANGELOG.md | 4 ++++ lib/src/widgets/buttons/ds_button.widget.dart | 8 +++++--- pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb696dea..9baf7bac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/src/widgets/buttons/ds_button.widget.dart b/lib/src/widgets/buttons/ds_button.widget.dart index 35aa9e0e..45d96f8c 100644 --- a/lib/src/widgets/buttons/ds_button.widget.dart +++ b/lib/src/widgets/buttons/ds_button.widget.dart @@ -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( diff --git a/pubspec.yaml b/pubspec.yaml index 8d9af97e..7889a319 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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