From 266c3e0d7b55ea307b7aae786fc5948154545768 Mon Sep 17 00:00:00 2001 From: "leonardo.gabriel" Date: Tue, 7 Jan 2025 14:52:32 -0300 Subject: [PATCH] fix: DSGroupCard avatar with simpleStyle --- CHANGELOG.md | 4 ++++ lib/src/widgets/utils/ds_group_card.widget.dart | 5 +++-- pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56f79892..678c4f37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.1 + +- [DSGroupCard] fix avatar with `simpleStyle` param + ## 0.3.0 - Add support to new Flutter version (3.27.1) diff --git a/lib/src/widgets/utils/ds_group_card.widget.dart b/lib/src/widgets/utils/ds_group_card.widget.dart index 1dfcb4ff..67a4fd7c 100644 --- a/lib/src/widgets/utils/ds_group_card.widget.dart +++ b/lib/src/widgets/utils/ds_group_card.widget.dart @@ -367,8 +367,9 @@ class _DSGroupCardState extends State { ), ]; - if ((sentMessage && widget.avatarConfig.showSentAvatar) || - (!sentMessage && widget.avatarConfig.showReceivedAvatar)) { + if (!widget.simpleStyle && + ((sentMessage && widget.avatarConfig.showSentAvatar) || + (!sentMessage && widget.avatarConfig.showReceivedAvatar))) { columns.add( const SizedBox.shrink(), ); diff --git a/pubspec.yaml b/pubspec.yaml index 478c5117..0e71f7ad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: blip_ds description: Blip Design System for Flutter. -version: 0.3.0 +version: 0.3.1 homepage: https://github.com/takenet/blip-ds-flutter#readme repository: https://github.com/takenet/blip-ds-flutter