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}",
|
"An error occurred while parsing this event:\n$parseError\n${parseError.stackTrace}",
|
||||||
style: errorStyle,
|
style: errorStyle,
|
||||||
),
|
),
|
||||||
EncryptedContent() => Text("Unable to decrypt event", style: errorStyle),
|
MessageContent() || EncryptedContent() => Row(
|
||||||
MessageContent() => Row(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
children: [
|
children: [
|
||||||
|
|
@ -127,6 +126,10 @@ class RenderEvent extends ConsumerWidget {
|
||||||
// EventText(replyEvent textOnly: true, maxLines: 1,)
|
// EventText(replyEvent textOnly: true, maxLines: 1,)
|
||||||
// ),
|
// ),
|
||||||
switch (event.content) {
|
switch (event.content) {
|
||||||
|
EncryptedContent() => Text(
|
||||||
|
"Unable to decrypt event",
|
||||||
|
style: errorStyle,
|
||||||
|
),
|
||||||
TextMessageContent(
|
TextMessageContent(
|
||||||
:final body,
|
:final body,
|
||||||
:final formattedBody,
|
:final formattedBody,
|
||||||
|
|
@ -208,7 +211,6 @@ class RenderEvent extends ConsumerWidget {
|
||||||
headers: ref.headers,
|
headers: ref.headers,
|
||||||
),
|
),
|
||||||
width: info?.width,
|
width: info?.width,
|
||||||
height: info?.height,
|
|
||||||
loadingBuilder:
|
loadingBuilder:
|
||||||
(_, child, loadingProgress) =>
|
(_, child, loadingProgress) =>
|
||||||
loadingProgress == null
|
loadingProgress == null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue