Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] UX improvement on switching to media kit player from native video player

ashilknf681c956ea51
diff --git a/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart b/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart
index 7d380caf25..ab38112d07 100644
--- a/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart
+++ b/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart
@@ -140,37 +140,38 @@ class _VideoWidgetMediaKitNewState extends State<VideoWidgetMediaKitNew>
widget.playbackCallback,
isFromMemories: widget.isFromMemories,
)
- : Stack(
- children: [
- _getThumbnail(),
- Container(
- color: Colors.black12,
- constraints: const BoxConstraints.expand(),
- ),
- Center(
- child: SizedBox.fromSize(
- size: const Size.square(20),
- child: ValueListenableBuilder(
- valueListenable: _progressNotifier,
- builder: (BuildContext context, double? progress, _) {
- return progress == null || progress == 1
- ? const CupertinoActivityIndicator(
- color: Colors.white,
- )
- : CircularProgressIndicator(
- backgroundColor: Colors.black,
- value: progress,
- valueColor:
- const AlwaysStoppedAnimation<Color>(
- Color.fromRGBO(45, 194, 98, 1.0),
- ),
- );
- },
- ),
- ),
- ),
- ],
- ),
+ // : Stack(
+ // children: [
+ // _getThumbnail(),
+ // Container(
+ // color: Colors.black12,
+ // constraints: const BoxConstraints.expand(),
+ // ),
+ // Center(
+ // child: SizedBox.fromSize(
+ // size: const Size.square(20),
+ // child: ValueListenableBuilder(
+ // valueListenable: _progressNotifier,
+ // builder: (BuildContext context, double? progress, _) {
+ // return progress == null || progress == 1
+ // ? const CupertinoActivityIndicator(
+ // color: Colors.white,
+ // )
+ // : CircularProgressIndicator(
+ // backgroundColor: Colors.black,
+ // value: progress,
+ // valueColor:
+ // const AlwaysStoppedAnimation<Color>(
+ // Color.fromRGBO(45, 194, 98, 1.0),
+ // ),
+ // );
+ // },
+ // ),
+ // ),
+ // ),
+ // ],
+ // ),
+ : const SizedBox.shrink(),
),
);
}