Skip to content

Commit

Permalink
fix avatar data and size
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalha07 committed Nov 14, 2023
1 parent e76dd8e commit e8d5669
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.8+4"
version: "1.0.0+1"
args:
dependency: transitive
description:
Expand Down
10 changes: 5 additions & 5 deletions lib/src/acter_avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class _ActerAvatar extends State<ActerAvatar> {

Widget renderFallback(BuildContext context) {
double badgeOverflow = badgeSize / 5;
double fallbackSize = widget.size == null ? 48 : widget.size! * 2.0;
double fallbackSize = widget.size == null ? 48 : widget.size!;

/// Fallback
switch (widget.mode) {
Expand Down Expand Up @@ -453,10 +453,10 @@ class _ActerAvatar extends State<ActerAvatar> {
);
case DisplayMode.GroupChat:
return TextAvatar(
text:
widget.avatarInfo.displayName ?? widget.avatarsInfo![0].uniqueId,
sourceText: widget.avatarsInfo![0].uniqueId,
size: fallbackSize,
text: widget.avatarInfo.displayName ?? widget.avatarInfo.uniqueId,
sourceText: widget.avatarInfo.uniqueId,
size: 24,
fontSize: 6,
shape: Shape.Rectangle,
);
}
Expand Down

0 comments on commit e8d5669

Please sign in to comment.