mirror of
https://github.com/immich-app/immich.git
synced 2025-10-31 18:47:09 -04:00
* chore: map widget and page styling * fix: map bottom sheet styling * fix: attribution location on android it appears that on android, the attribution marker is positioned from the top of the display and on iOS its positioned from the safe area edge
40 lines
1.1 KiB
Dart
40 lines
1.1 KiB
Dart
import 'package:auto_route/auto_route.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
|
import 'package:immich_mobile/presentation/widgets/map/map.widget.dart';
|
|
import 'package:maplibre_gl/maplibre_gl.dart';
|
|
|
|
@RoutePage()
|
|
class DriftMapPage extends StatelessWidget {
|
|
final LatLng? initialLocation;
|
|
|
|
const DriftMapPage({super.key, this.initialLocation});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
extendBodyBehindAppBar: true,
|
|
body: Stack(
|
|
children: [
|
|
DriftMap(initialLocation: initialLocation),
|
|
Positioned(
|
|
left: 16,
|
|
top: 60,
|
|
child: IconButton.filled(
|
|
color: Colors.white,
|
|
onPressed: () => context.pop(),
|
|
icon: const Icon(Icons.arrow_back_ios_new_rounded),
|
|
style: IconButton.styleFrom(
|
|
padding: const EdgeInsets.all(8),
|
|
backgroundColor: Colors.indigo,
|
|
shadowColor: Colors.black26,
|
|
elevation: 4,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|