improved motion photo handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user