improved motion photo handling

This commit is contained in:
mertalev
2024-11-16 20:18:22 -05:00
parent d1c7ed5464
commit b0a2a6ac13
5 changed files with 49 additions and 39 deletions
+7 -1
View File
@@ -1086,6 +1086,7 @@ class NativeVideoViewerRoute extends PageRouteInfo<NativeVideoViewerRouteArgs> {
Key? key,
required Asset asset,
required Widget placeholder,
ValueNotifier<bool>? isPlayingMotionVideo,
bool showControls = true,
List<PageRouteInfo>? children,
}) : super(
@@ -1094,6 +1095,7 @@ class NativeVideoViewerRoute extends PageRouteInfo<NativeVideoViewerRouteArgs> {
key: key,
asset: asset,
placeholder: placeholder,
isPlayingMotionVideo: isPlayingMotionVideo,
showControls: showControls,
),
initialChildren: children,
@@ -1108,7 +1110,8 @@ class NativeVideoViewerRoute extends PageRouteInfo<NativeVideoViewerRouteArgs> {
return NativeVideoViewerPage(
key: args.key,
asset: args.asset,
placeholder: args.placeholder,
image: args.placeholder,
isPlayingMotionVideo: args.isPlayingMotionVideo,
showControls: args.showControls,
);
},
@@ -1120,6 +1123,7 @@ class NativeVideoViewerRouteArgs {
this.key,
required this.asset,
required this.placeholder,
this.isPlayingMotionVideo,
this.showControls = true,
});
@@ -1129,6 +1133,8 @@ class NativeVideoViewerRouteArgs {
final Widget placeholder;
final ValueNotifier<bool>? isPlayingMotionVideo;
final bool showControls;
@override