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:
parent
cfcbf944ff
commit
706d0bf060
1 changed files with 3 additions and 1 deletions
|
|
@ -170,7 +170,9 @@ class EventVideoPlayerState extends State<EventVideoPlayer> {
|
||||||
strokeWidth: 2,
|
strokeWidth: 2,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: const Icon(Icons.play_circle_outlined),
|
: _supportsVideoPlayer
|
||||||
|
? const Icon(Icons.play_circle_outlined)
|
||||||
|
: const Icon(Icons.file_download_outlined),
|
||||||
tooltip: _isDownloading
|
tooltip: _isDownloading
|
||||||
? L10n.of(context).loadingPleaseWait
|
? L10n.of(context).loadingPleaseWait
|
||||||
: L10n.of(context).videoWithSize(
|
: L10n.of(context).videoWithSize(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue