feat(mobile): location edit from asset viewer (#23925)

* chore: break sheet tile into own file

* feat: set location from bottom sheet

* refactor: location picker

There was a lot of confusing controls here, simplified to 1 mode

* fix: local asset check

* chore: refactoring of location details widget

* fix: update currentAssetExifProvider when changing location

* chore: use SheetTile for location header

* chore: remove coordinate change check

* chore: remove comment
This commit is contained in:
Brandon Wees
2025-11-18 21:06:51 -06:00
committed by GitHub
parent 5f987a95f5
commit 2a281e7906
6 changed files with 217 additions and 238 deletions

View File

@@ -301,6 +301,13 @@ class ActionNotifier extends Notifier<void> {
return null;
}
// This must be called since editing location
// does not update the currentAsset which means
// the exif provider will not be refreshed automatically
if (source == ActionSource.viewer) {
ref.invalidate(currentAssetExifProvider);
}
return ActionResult(count: ids.length, success: true);
} catch (error, stack) {
_logger.severe('Failed to edit location for assets', error, stack);