summaryrefslogtreecommitdiff
path: root/plugins/aves_map/lib/src/theme.dart
diff options
context:
space:
mode:
authormirror <mirror@localhost>2026-11-22 08:41:00 +0900
committermirror <mirror@localhost>2026-11-22 08:41:00 +0900
commit449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch)
treec131c3528c4d517f56e19b854a7453fedb097d40 /plugins/aves_map/lib/src/theme.dart
downloadaves-src-master.tar.gz
aves-src-master.zip
snapshot of aves v1.13.12 (secrets removed: android/app/google-services.json)HEADv1.13.12master
Diffstat (limited to 'plugins/aves_map/lib/src/theme.dart')
-rw-r--r--plugins/aves_map/lib/src/theme.dart33
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/aves_map/lib/src/theme.dart b/plugins/aves_map/lib/src/theme.dart
new file mode 100644
index 0000000..521d94d
--- /dev/null
+++ b/plugins/aves_map/lib/src/theme.dart
@@ -0,0 +1,33 @@
+import 'package:flutter/material.dart';
+
+enum MapNavigationButton { back, close, map, none }
+
+class MapThemeData {
+ final bool interactive, showCoordinateFilter;
+ final MapNavigationButton navigationButton;
+ final Animation<double> scale;
+ final VisualDensity visualDensity;
+ final double? mapHeight;
+ final EdgeInsets attributionPadding;
+
+ const MapThemeData({
+ required this.interactive,
+ required this.showCoordinateFilter,
+ required this.navigationButton,
+ required this.scale,
+ required this.visualDensity,
+ required this.mapHeight,
+ required this.attributionPadding,
+ });
+
+ static const double markerOuterBorderWidth = 1.5;
+ static const double markerInnerBorderWidth = 2;
+ static const double markerImageExtent = 48.0;
+ static const Size markerArrowSize = Size(8, 6);
+ static const double markerDotDiameter = 16;
+ static const int trackWidth = 5;
+
+ static Color markerThemedOuterBorderColor(bool isDark) => isDark ? Colors.white30 : Colors.black26;
+
+ static Color markerThemedInnerBorderColor(bool isDark) => isDark ? const Color(0xFF212121) : Colors.white;
+}