mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 15:59:30 +03:00
maplibre is a ground-up rewrite of maplibre_gl with a more modern and ergonomic API. It should fix a few bugs we've seen with maps, and perform better.
34 lines
988 B
Dart
34 lines
988 B
Dart
import 'package:auto_route/auto_route.dart';
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:immich_mobile/routing/router.dart';
|
|
import 'package:immich_mobile/widgets/map/map_thumbnail.dart';
|
|
import 'package:immich_mobile/widgets/search/thumbnail_with_info_container.dart';
|
|
import 'package:maplibre/maplibre.dart';
|
|
|
|
class SearchMapThumbnail extends StatelessWidget {
|
|
const SearchMapThumbnail({super.key, this.size = 60.0});
|
|
|
|
final double size;
|
|
final bool showTitle = true;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ThumbnailWithInfoContainer(
|
|
label: 'search_page_your_map'.tr(),
|
|
onTap: () {
|
|
context.pushRoute(MapRoute());
|
|
},
|
|
child: IgnorePointer(
|
|
child: MapThumbnail(
|
|
zoom: 2,
|
|
centre: const Geographic(lat: 47, lon: 5),
|
|
height: size,
|
|
width: size,
|
|
showAttribution: false,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|