refactor(mobile): asset stack provider (#16100)

* refactor(mobile): asset stack provider

* remove file from ignore list
This commit is contained in:
Alex 2025-02-14 13:23:14 -06:00 committed by GitHub
parent 8ab87a8803
commit 47203d2760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 33 additions and 23 deletions

View file

@ -1060,6 +1060,7 @@ class NativeVideoViewerRoute extends PageRouteInfo<NativeVideoViewerRouteArgs> {
required Asset asset,
required Widget image,
bool showControls = true,
int playbackDelayFactor = 1,
List<PageRouteInfo>? children,
}) : super(
NativeVideoViewerRoute.name,
@ -1068,6 +1069,7 @@ class NativeVideoViewerRoute extends PageRouteInfo<NativeVideoViewerRouteArgs> {
asset: asset,
image: image,
showControls: showControls,
playbackDelayFactor: playbackDelayFactor,
),
initialChildren: children,
);
@ -1083,6 +1085,7 @@ class NativeVideoViewerRoute extends PageRouteInfo<NativeVideoViewerRouteArgs> {
asset: args.asset,
image: args.image,
showControls: args.showControls,
playbackDelayFactor: args.playbackDelayFactor,
);
},
);
@ -1094,6 +1097,7 @@ class NativeVideoViewerRouteArgs {
required this.asset,
required this.image,
this.showControls = true,
this.playbackDelayFactor = 1,
});
final Key? key;
@ -1104,9 +1108,11 @@ class NativeVideoViewerRouteArgs {
final bool showControls;
final int playbackDelayFactor;
@override
String toString() {
return 'NativeVideoViewerRouteArgs{key: $key, asset: $asset, image: $image, showControls: $showControls}';
return 'NativeVideoViewerRouteArgs{key: $key, asset: $asset, image: $image, showControls: $showControls, playbackDelayFactor: $playbackDelayFactor}';
}
}