From 9375f48a070875478a64f1bea67f303dcc38b842 Mon Sep 17 00:00:00 2001 From: stopflock Date: Sat, 16 Aug 2025 19:45:48 -0500 Subject: [PATCH] fix default upload dest (should be simulate) and add dev_config param for "tag camera" pin v. offset --- .gitignore | 7 +++++++ lib/app_state.dart | 2 +- lib/dev_config.dart | 3 +++ lib/widgets/map_view.dart | 7 +++++-- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5fb7318..b7dd43f 100644 --- a/.gitignore +++ b/.gitignore @@ -80,3 +80,10 @@ Thumbs.db *.keystore .env +# ─────────────────────────────── +# For now - not targeting these +# ─────────────────────────────── +linux/ +macos/ +web/ +windows/ \ No newline at end of file diff --git a/lib/app_state.dart b/lib/app_state.dart index 294c42c..c2f5839 100644 --- a/lib/app_state.dart +++ b/lib/app_state.dart @@ -72,7 +72,7 @@ class AppState extends ChangeNotifier { } // Upload mode: production, sandbox, or simulate (in-memory, no uploads) - UploadMode _uploadMode = UploadMode.production; + UploadMode _uploadMode = UploadMode.simulate; static const String _uploadModePrefsKey = 'upload_mode'; UploadMode get uploadMode => _uploadMode; Future setUploadMode(UploadMode mode) async { diff --git a/lib/dev_config.dart b/lib/dev_config.dart index b12ba62..50e2692 100644 --- a/lib/dev_config.dart +++ b/lib/dev_config.dart @@ -10,6 +10,9 @@ const double kTileEstimateKb = 25.0; const double kDirectionConeHalfAngle = 20.0; // degrees const double kDirectionConeBaseLength = 0.0012; // multiplier +// Add Camera pin vertical offset (for pin tip to match coordinate on map) +const double kAddPinYOffset = -16.0; + // Marker/camera interaction const int kCameraMinZoomLevel = 10; // Minimum zoom to show cameras or warning const Duration kMarkerTapTimeout = Duration(milliseconds: 250); diff --git a/lib/widgets/map_view.dart b/lib/widgets/map_view.dart index aa77029..6313664 100644 --- a/lib/widgets/map_view.dart +++ b/lib/widgets/map_view.dart @@ -391,9 +391,12 @@ class _MapViewState extends State { // Fixed pin when adding camera if (session != null) - const IgnorePointer( + IgnorePointer( child: Center( - child: Icon(Icons.place, size: 40, color: Colors.redAccent), + child: Transform.translate( + offset: Offset(0, kAddPinYOffset), + child: Icon(Icons.place, size: 40, color: Colors.redAccent), + ), ), ), ],