mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
fix: Play video without thumbnail if none
This commit is contained in:
parent
cbaa3c5b13
commit
6670fd246d
@ -89,8 +89,8 @@ class MessageContent extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return MessageDownloadContent(event, textColor);
|
return MessageDownloadContent(event, textColor);
|
||||||
case MessageTypes.Video:
|
case MessageTypes.Video:
|
||||||
if (event.showThumbnail &&
|
if (PlatformInfos.isMobile || PlatformInfos.isWeb) {
|
||||||
(PlatformInfos.isMobile || PlatformInfos.isWeb)) {
|
if (event.showThumbnail) {
|
||||||
return Stack(
|
return Stack(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@ -113,6 +113,16 @@ class MessageContent extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return FloatingActionButton.extended(
|
||||||
|
onPressed: () => showDialog(
|
||||||
|
context: Matrix.of(context).navigatorContext,
|
||||||
|
useRootNavigator: false,
|
||||||
|
builder: (_) => VideoViewer(event),
|
||||||
|
),
|
||||||
|
label: Text(L10n.of(context).play('Video')),
|
||||||
|
icon: const Icon(Icons.video_camera_front_outlined),
|
||||||
|
);
|
||||||
|
}
|
||||||
return MessageDownloadContent(event, textColor);
|
return MessageDownloadContent(event, textColor);
|
||||||
case MessageTypes.File:
|
case MessageTypes.File:
|
||||||
return MessageDownloadContent(event, textColor);
|
return MessageDownloadContent(event, textColor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user