@@ -8,8 +8,6 @@ import 'package:matrix/matrix.dart';
88import 'package:fluffychat/config/app_config.dart' ;
99import 'package:fluffychat/config/setting_keys.dart' ;
1010import 'package:fluffychat/utils/file_description.dart' ;
11- import 'package:fluffychat/utils/matrix_sdk_extensions/event_extension.dart' ;
12- import 'package:fluffychat/utils/platform_infos.dart' ;
1311import 'package:fluffychat/utils/url_launcher.dart' ;
1412import 'package:fluffychat/widgets/blur_hash.dart' ;
1513import 'package:fluffychat/widgets/mxc_image.dart' ;
@@ -33,8 +31,6 @@ class EventVideoPlayer extends StatelessWidget {
3331
3432 @override
3533 Widget build (BuildContext context) {
36- final supportsVideoPlayer = PlatformInfos .supportsVideoPlayer;
37-
3834 final blurHash =
3935 (event.infoMap as Map <String , dynamic >).tryGet <String >(
4036 'xyz.amorgan.blurhash' ,
@@ -63,16 +59,11 @@ class EventVideoPlayer extends StatelessWidget {
6359 color: Colors .black,
6460 borderRadius: BorderRadius .circular (AppConfig .borderRadius),
6561 child: InkWell (
66- onTap: () => supportsVideoPlayer
67- ? showDialog (
68- context: context,
69- builder: (_) => ImageViewer (
70- event,
71- timeline: timeline,
72- outerContext: context,
73- ),
74- )
75- : event.saveFile (context),
62+ onTap: () => showDialog (
63+ context: context,
64+ builder: (_) =>
65+ ImageViewer (event, timeline: timeline, outerContext: context),
66+ ),
7667 borderRadius: BorderRadius .circular (AppConfig .borderRadius),
7768 child: SizedBox (
7869 width: width,
@@ -104,9 +95,7 @@ class EventVideoPlayer extends StatelessWidget {
10495 ),
10596 Center (
10697 child: CircleAvatar (
107- child: supportsVideoPlayer
108- ? const Icon (Icons .play_arrow_outlined)
109- : const Icon (Icons .file_download_outlined),
98+ child: const Icon (Icons .play_arrow_outlined),
11099 ),
111100 ),
112101 if (duration != null )
0 commit comments