We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1368b45 commit a58b5d6Copy full SHA for a58b5d6
lib/src/widget/asset_picker.dart
@@ -39,6 +39,7 @@ class AssetPicker<A, P> extends StatelessWidget {
39
IndicatorBuilder? loadingIndicatorBuilder,
40
SpecialItemPosition specialItemPosition = SpecialItemPosition.none,
41
bool allowSpecialItemWhenEmpty = false,
42
+ bool useRootNavigator = true,
43
Curve routeCurve = Curves.easeIn,
44
Duration routeDuration = const Duration(milliseconds: 300),
45
}) async {
@@ -108,7 +109,7 @@ class AssetPicker<A, P> extends StatelessWidget {
108
109
);
110
final List<AssetEntity>? result = await Navigator.of(
111
context,
- rootNavigator: true,
112
+ rootNavigator: useRootNavigator,
113
).push<List<AssetEntity>>(
114
SlidePageTransitionBuilder<List<AssetEntity>>(
115
builder: picker,
0 commit comments