fixup image rendering, prettier rendering for UTDs
This commit is contained in:
parent
e7ecae4606
commit
b71ebe5fee
1 changed files with 5 additions and 3 deletions
|
|
@ -69,8 +69,7 @@ class RenderEvent extends ConsumerWidget {
|
|||
"An error occurred while parsing this event:\n$parseError\n${parseError.stackTrace}",
|
||||
style: errorStyle,
|
||||
),
|
||||
EncryptedContent() => Text("Unable to decrypt event", style: errorStyle),
|
||||
MessageContent() => Row(
|
||||
MessageContent() || EncryptedContent() => Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
spacing: 8,
|
||||
children: [
|
||||
|
|
@ -127,6 +126,10 @@ class RenderEvent extends ConsumerWidget {
|
|||
// EventText(replyEvent textOnly: true, maxLines: 1,)
|
||||
// ),
|
||||
switch (event.content) {
|
||||
EncryptedContent() => Text(
|
||||
"Unable to decrypt event",
|
||||
style: errorStyle,
|
||||
),
|
||||
TextMessageContent(
|
||||
:final body,
|
||||
:final formattedBody,
|
||||
|
|
@ -208,7 +211,6 @@ class RenderEvent extends ConsumerWidget {
|
|||
headers: ref.headers,
|
||||
),
|
||||
width: info?.width,
|
||||
height: info?.height,
|
||||
loadingBuilder:
|
||||
(_, child, loadingProgress) =>
|
||||
loadingProgress == null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue