forked from Henry-Hiles/nexus
more rounded avatars, fix metadata error
This commit is contained in:
parent
163facca7e
commit
0db667554f
3 changed files with 3 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ class AvatarOrHash extends ConsumerWidget {
|
|||
smallSize: 12,
|
||||
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||
borderRadius: BorderRadius.all(Radius.circular((height - 8) / 2.5)),
|
||||
child: SizedBox(
|
||||
width: height,
|
||||
height: height,
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class TopWidget extends ConsumerWidget {
|
|||
if (replyMessage == null) return SizedBox.shrink();
|
||||
|
||||
final smallerText =
|
||||
message is TextMessage && replyMessage.metadata!["body"] != null
|
||||
message is TextMessage && replyMessage.metadata?["body"] != null
|
||||
? replyMessage.metadata!["body"].substring(
|
||||
0,
|
||||
min(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue