Skip to content

Commit

Permalink
fix: DSGroupCard avatar with simpleStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo.gabriel committed Jan 7, 2025
1 parent e650f75 commit 266c3e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 3 additions & 2 deletions lib/src/widgets/utils/ds_group_card.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,9 @@ class _DSGroupCardState extends State<DSGroupCard> {
),
];

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(),
);
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.3.0
version: 0.3.1
homepage: https://github.com/takenet/blip-ds-flutter#readme
repository: https://github.com/takenet/blip-ds-flutter

Expand Down

0 comments on commit 266c3e0

Please sign in to comment.