mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 23:12:37 +01:00
fix: Disable broken audioplayer for web
This commit is contained in:
parent
12a3b04142
commit
0bfbf271d4
@ -131,9 +131,6 @@ class _AudioPlayerState extends State<AudioPlayerWidget> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (PlatformInfos.isLinux || PlatformInfos.isWindows) {
|
|
||||||
return MessageDownloadContent(widget.event, widget.color);
|
|
||||||
}
|
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
@ -95,10 +95,13 @@ class MessageContent extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
return MessageDownloadContent(event, textColor);
|
return MessageDownloadContent(event, textColor);
|
||||||
case MessageTypes.Audio:
|
case MessageTypes.Audio:
|
||||||
|
if (PlatformInfos.isMobile) {
|
||||||
return AudioPlayerWidget(
|
return AudioPlayerWidget(
|
||||||
event,
|
event,
|
||||||
color: textColor,
|
color: textColor,
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
return MessageDownloadContent(event, textColor);
|
||||||
case MessageTypes.Video:
|
case MessageTypes.Video:
|
||||||
if (event.showThumbnail &&
|
if (event.showThumbnail &&
|
||||||
(PlatformInfos.isMobile || PlatformInfos.isWeb)) {
|
(PlatformInfos.isMobile || PlatformInfos.isWeb)) {
|
||||||
@ -127,6 +130,7 @@ class MessageContent extends StatelessWidget {
|
|||||||
return MessageDownloadContent(event, textColor);
|
return MessageDownloadContent(event, textColor);
|
||||||
case MessageTypes.File:
|
case MessageTypes.File:
|
||||||
return MessageDownloadContent(event, textColor);
|
return MessageDownloadContent(event, textColor);
|
||||||
|
|
||||||
case MessageTypes.Text:
|
case MessageTypes.Text:
|
||||||
case MessageTypes.Notice:
|
case MessageTypes.Notice:
|
||||||
case MessageTypes.Emote:
|
case MessageTypes.Emote:
|
||||||
|
Loading…
Reference in New Issue
Block a user