Harden geofence automation and home editing

This commit is contained in:
Artem Kokos
2026-05-15 11:26:23 +07:00
parent 50748c6945
commit 8ffaa14b60
21 changed files with 718 additions and 160 deletions

View File

@@ -277,6 +277,11 @@ class _HomesScreenState extends ConsumerState<HomesScreen>
final shouldWatch = ref
.read(homesProvider)
.any((home) => home.hasCoordinates);
if (shouldWatch && _isWatchingLocation) {
await _userLocationNotifier.ensureWatchingStarted();
return;
}
if (shouldWatch == _isWatchingLocation) {
return;
}