ignore pointer for reply preview
This commit is contained in:
parent
ffdcc89de0
commit
5a9e29be34
1 changed files with 24 additions and 19 deletions
|
|
@ -150,28 +150,33 @@ class EventRenderer extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
)) {
|
)) {
|
||||||
AsyncData(:final value?) ||
|
AsyncData(:final value?) ||
|
||||||
AsyncLoading(:final value?) => Row(
|
AsyncLoading(
|
||||||
spacing: 8,
|
:final value?,
|
||||||
children: [
|
) => IgnorePointer(
|
||||||
MessageAvatar(value, height: 24),
|
child: Row(
|
||||||
Flexible(
|
spacing: 8,
|
||||||
child: MessageDisplayname(
|
children: [
|
||||||
value,
|
MessageAvatar(value, height: 24),
|
||||||
style: TextStyle(
|
Flexible(
|
||||||
color:
|
child: MessageDisplayname(
|
||||||
theme.colorScheme.primary,
|
value,
|
||||||
fontWeight: FontWeight.bold,
|
style: TextStyle(
|
||||||
|
color: theme
|
||||||
|
.colorScheme
|
||||||
|
.primary,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Expanded(
|
||||||
Expanded(
|
child: EventRenderer(
|
||||||
child: EventRenderer(
|
value,
|
||||||
value,
|
textOnly: true,
|
||||||
textOnly: true,
|
maxLines: 1,
|
||||||
maxLines: 1,
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
AsyncError _ => Text(
|
AsyncError _ => Text(
|
||||||
"An error occurred while fetching the reply",
|
"An error occurred while fetching the reply",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue