mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(dep): update auto_route (#6390)
* chore(dep): update auto_route * chore: rebase main --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
984feafb90
commit
ba5cca9348
48 changed files with 1473 additions and 1646 deletions
|
|
@ -13,6 +13,7 @@ import 'package:maplibre_gl/maplibre_gl.dart';
|
|||
import 'package:immich_mobile/modules/map/utils/map_utils.dart';
|
||||
import 'package:geolocator/geolocator.dart';
|
||||
|
||||
@RoutePage<LatLng?>()
|
||||
class MapLocationPickerPage extends HookConsumerWidget {
|
||||
final LatLng initialLatLng;
|
||||
|
||||
|
|
@ -45,7 +46,8 @@ class MapLocationPickerPage extends HookConsumerWidget {
|
|||
}
|
||||
|
||||
Future<void> getCurrentLocation() async {
|
||||
var (currentLocation, locationPermission) = await MapUtils.checkPermAndGetLocation(context);
|
||||
var (currentLocation, locationPermission) =
|
||||
await MapUtils.checkPermAndGetLocation(context);
|
||||
if (locationPermission == LocationPermission.denied ||
|
||||
locationPermission == LocationPermission.deniedForever) {
|
||||
return;
|
||||
|
|
@ -53,7 +55,8 @@ class MapLocationPickerPage extends HookConsumerWidget {
|
|||
if (currentLocation == null) {
|
||||
return;
|
||||
}
|
||||
var currentLatLng = LatLng(currentLocation.latitude, currentLocation.longitude);
|
||||
var currentLatLng =
|
||||
LatLng(currentLocation.latitude, currentLocation.longitude);
|
||||
selectedLatLng.value = currentLatLng;
|
||||
controller.value?.animateCamera(CameraUpdate.newLatLng(currentLatLng));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ import 'package:immich_mobile/shared/views/immich_loading_overlay.dart';
|
|||
import 'package:immich_mobile/utils/debounce.dart';
|
||||
import 'package:maplibre_gl/maplibre_gl.dart';
|
||||
|
||||
@RoutePage()
|
||||
class MapPage extends HookConsumerWidget {
|
||||
const MapPage({super.key});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue