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.
useRootNavigator
1 parent 9260fdb commit 5c5dc6eCopy full SHA for 5c5dc6e
lib/src/widget/camera_picker.dart
@@ -143,11 +143,15 @@ class CameraPicker extends StatefulWidget {
143
ImageFormatGroup imageFormatGroup = ImageFormatGroup.unknown,
144
Widget Function(CameraValue)? foregroundBuilder,
145
EntitySaveCallback? onEntitySaving,
146
+ bool useRootNavigator = true,
147
}) {
148
if (enableRecording != true && onlyEnableRecording == true) {
149
throw ArgumentError('Recording mode error.');
150
}
- return Navigator.of(context, rootNavigator: true).push<AssetEntity>(
151
+ return Navigator.of(
152
+ context,
153
+ rootNavigator: useRootNavigator,
154
+ ).push<AssetEntity>(
155
SlidePageTransitionBuilder<AssetEntity>(
156
builder: CameraPicker(
157
enableRecording: enableRecording,
0 commit comments