mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 10:14:08 -04:00
fix(mobile): After editing people name, back button close the app (#18992)
* fix: update dialog to not use root navigator in multiple pages so back button won't close the app * Remove unrelated changes to PR
This commit is contained in:
parent
75c24f0023
commit
e88eb44aba
@ -27,6 +27,7 @@ class PeopleCollectionPage extends HookConsumerWidget {
|
|||||||
) {
|
) {
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
useRootNavigator: false,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PersonNameEditForm(personId: personId, personName: personName);
|
return PersonNameEditForm(personId: personId, personName: personName);
|
||||||
},
|
},
|
||||||
|
@ -28,6 +28,7 @@ class PersonResultPage extends HookConsumerWidget {
|
|||||||
showEditNameDialog() {
|
showEditNameDialog() {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
useRootNavigator: false,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PersonNameEditForm(
|
return PersonNameEditForm(
|
||||||
personId: personId,
|
personId: personId,
|
||||||
|
@ -31,6 +31,7 @@ class PeopleInfo extends ConsumerWidget {
|
|||||||
) {
|
) {
|
||||||
return showDialog(
|
return showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
useRootNavigator: false,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return PersonNameEditForm(personId: personId, personName: personName);
|
return PersonNameEditForm(personId: personId, personName: personName);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user