mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
design: Display icon for failed sent messages
This commit is contained in:
parent
38ddc4a1db
commit
d0971196f6
@ -112,17 +112,21 @@ class Message extends StatelessWidget {
|
|||||||
sameSender || ownMessage
|
sameSender || ownMessage
|
||||||
? SizedBox(
|
? SizedBox(
|
||||||
width: Avatar.defaultSize,
|
width: Avatar.defaultSize,
|
||||||
child: event.status == EventStatus.sending
|
child: Padding(
|
||||||
? Center(
|
padding: const EdgeInsets.only(top: 8.0),
|
||||||
child: SizedBox(
|
child: Center(
|
||||||
width: 16 * AppConfig.bubbleSizeFactor,
|
child: SizedBox(
|
||||||
height: 16 * AppConfig.bubbleSizeFactor,
|
width: 16 * AppConfig.bubbleSizeFactor,
|
||||||
child: const CircularProgressIndicator.adaptive(
|
height: 16 * AppConfig.bubbleSizeFactor,
|
||||||
strokeWidth: 2),
|
child: event.status == EventStatus.sending
|
||||||
),
|
? const CircularProgressIndicator.adaptive(
|
||||||
)
|
strokeWidth: 2)
|
||||||
: null,
|
: event.status == EventStatus.error
|
||||||
)
|
? const Icon(Icons.error, color: Colors.red)
|
||||||
|
: null,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
))
|
||||||
: Avatar(
|
: Avatar(
|
||||||
mxContent: event.sender.avatarUrl,
|
mxContent: event.sender.avatarUrl,
|
||||||
name: event.sender.calcDisplayname(),
|
name: event.sender.calcDisplayname(),
|
||||||
|
Loading…
Reference in New Issue
Block a user