maps/mobile/lib/core/constants.dart
2026-04-04 15:33:22 +02:00

30 lines
912 B
Dart

import 'package:latlong2/latlong.dart';
class AppConstants {
AppConstants._();
/// Default backend URL when none is configured.
static const String defaultBackendUrl = 'http://192.168.2.59:8080';
/// Default map center: Amsterdam.
static const double defaultLat = 52.3676;
static const double defaultLon = 4.9041;
static final LatLng defaultCenter = LatLng(defaultLat, defaultLon);
/// Zoom levels.
static const double minZoom = 0;
static const double maxZoom = 18;
static const double defaultZoom = 13;
static const double poiZoom = 16;
static const double cityZoom = 12;
/// Search debounce duration in milliseconds.
static const int searchDebounceMs = 300;
/// Maximum search history entries.
static const int maxSearchHistory = 50;
/// Settings keys.
static const String settingBackendUrl = 'backend_url';
static const String settingThemeMode = 'theme_mode';
}