feat: clearly mark when a video is to be downloaded

This shows a download icon instead of the play icon on top of the video if the video player isn't supported.
This commit is contained in:
Rafał Hirsch 2025-04-02 21:27:09 +02:00
parent cfcbf944ff
commit 706d0bf060
No known key found for this signature in database

View file

@ -170,7 +170,9 @@ class EventVideoPlayerState extends State<EventVideoPlayer> {
strokeWidth: 2,
),
)
: const Icon(Icons.play_circle_outlined),
: _supportsVideoPlayer
? const Icon(Icons.play_circle_outlined)
: const Icon(Icons.file_download_outlined),
tooltip: _isDownloading
? L10n.of(context).loadingPleaseWait
: L10n.of(context).videoWithSize(