Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Fix UI issue on iOS

ashilkn7ff65557705d
diff --git a/mobile/lib/ui/viewer/people/save_or_edit_person.dart b/mobile/lib/ui/viewer/people/save_or_edit_person.dart
index 805c728393..3eea94a378 100644
--- a/mobile/lib/ui/viewer/people/save_or_edit_person.dart
+++ b/mobile/lib/ui/viewer/people/save_or_edit_person.dart
@@ -1,5 +1,6 @@
import 'dart:async';
import "dart:developer";
+import "dart:io";
import "package:flutter/foundation.dart";
import "package:flutter/material.dart";
@@ -366,6 +367,7 @@ class _SaveOrEditPersonState extends State<SaveOrEditPerson> {
Future<dynamic> _saveChangesPrompt(BuildContext context) async {
PersonEntity? updatedPersonEntity;
return await showActionSheet(
+ useRootNavigator: Platform.isIOS ? true : false,
body: "Save changes before leaving?",
context: context,
buttons: [
diff --git a/mobile/lib/utils/navigation_util.dart b/mobile/lib/utils/navigation_util.dart
index f40a8a3d26..467626d521 100644
--- a/mobile/lib/utils/navigation_util.dart
+++ b/mobile/lib/utils/navigation_util.dart
@@ -114,9 +114,9 @@ class SwipeableRouteBuilder<T> extends PageRoute<T> {
class TransparentRoute extends PageRoute<void> {
TransparentRoute({
required this.builder,
- RouteSettings? settings,
+ super.settings,
}) : assert(builder != null),
- super(settings: settings, fullscreenDialog: false);
+ super(fullscreenDialog: false);
final WidgetBuilder? builder;