From 359c8db1ac1fe133cb7034c61d5c0110a93cbcf6 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 27 Dec 2021 15:30:17 +0100 Subject: [PATCH] chore: Remove player options --- lib/pages/chat/events/video_player.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/pages/chat/events/video_player.dart b/lib/pages/chat/events/video_player.dart index 3b06636b..6cef1473 100644 --- a/lib/pages/chat/events/video_player.dart +++ b/lib/pages/chat/events/video_player.dart @@ -53,14 +53,12 @@ class _EventVideoPlayerState extends State { _chewieManager ??= ChewieController( videoPlayerController: VideoPlayerController.network(networkUri), autoPlay: true, - additionalOptions: _additionalOptions, autoInitialize: true, ); } else if (!kIsWeb && tmpFile != null && _chewieManager == null) { _chewieManager ??= ChewieController( videoPlayerController: VideoPlayerController.file(tmpFile), autoPlay: true, - additionalOptions: _additionalOptions, autoInitialize: true, ); } @@ -88,14 +86,6 @@ class _EventVideoPlayerState extends State { static const String fallbackBlurHash = 'L5H2EC=PM+yV0g-mq.wG9c010J}I'; - List _additionalOptions(BuildContext context) => [ - OptionItem( - onTap: () {}, - iconData: Icons.download_outlined, - title: L10n.of(context)!.downloadFile, - ), - ]; - @override Widget build(BuildContext context) { final hasThumbnail = widget.event.hasThumbnail;