From 7f80ed47f33dd06a78feebcd77b2ed3bed9a8a8b Mon Sep 17 00:00:00 2001 From: 240405 <240405@epvc.pt> Date: Tue, 17 Mar 2026 19:33:25 +0000 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20no=20bot=C3=A3o=20de=20ini?= =?UTF-8?q?ciar=20corrida?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/screens/google_map_screen.dart | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/lib/screens/google_map_screen.dart b/lib/screens/google_map_screen.dart index be6a795..e69ebea 100644 --- a/lib/screens/google_map_screen.dart +++ b/lib/screens/google_map_screen.dart @@ -45,7 +45,6 @@ class _GoogleMapScreenState extends State { } Future _setupIconsAndTracking() async { - // Icons reduced by ~70% as requested _arrowIcon = await _createArrowMarker(Colors.black, Colors.white, 25); await _initTracking(); } @@ -105,7 +104,7 @@ class _GoogleMapScreenState extends State { locationSettings: const LocationSettings(accuracy: LocationAccuracy.bestForNavigation, distanceFilter: 1) ).listen((Position position) { final now = DateTime.now(); - if (_lastUpdate == null || now.difference(_lastUpdate!).inMilliseconds > 1000) { + if (_lastUpdate == null || now.difference(_lastUpdate!).inMilliseconds > 2000) { _lastUpdate = now; _updatePosition(LatLng(position.latitude, position.longitude), position.speed); } @@ -149,7 +148,6 @@ class _GoogleMapScreenState extends State { void _updateTraveledPolylines() { if (_routePoints.length > 1) { _polylines.clear(); - // Glow effect for the trail _polylines.add(Polyline( polylineId: const PolylineId('route_glow'), points: List.from(_routePoints), @@ -157,7 +155,6 @@ class _GoogleMapScreenState extends State { width: 12, zIndex: 9 )); - // Main trail line _polylines.add(Polyline( polylineId: const PolylineId('route'), points: List.from(_routePoints), @@ -284,8 +281,6 @@ class _GoogleMapScreenState extends State { const SizedBox(height: 20), const Text(AppStrings.runFinished, style: TextStyle(color: Colors.white, fontSize: 24, fontWeight: FontWeight.w900, letterSpacing: 1)), const SizedBox(height: 30), - - // Mini Map Container Container( height: 180, decoration: BoxDecoration( @@ -318,13 +313,11 @@ class _GoogleMapScreenState extends State { ), ), const SizedBox(height: 25), - _buildResultRow(AppStrings.totalDistance, _formatDistance(finalDistance)), const Divider(color: Colors.white10, height: 25), _buildResultRow(AppStrings.totalTime, _formatTime(finalTime)), const Divider(color: Colors.white10, height: 25), _buildResultRow("VELOCIDADE MÁX", "${finalMaxSpeed.toStringAsFixed(1)} ${AppStrings.kmhUnit}"), - const SizedBox(height: 35), SizedBox( width: double.infinity, @@ -406,7 +399,6 @@ class _GoogleMapScreenState extends State { extendBodyBehindAppBar: true, body: Stack( children: [ - // Background Map Container Center( child: Container( width: MediaQuery.of(context).size.width * 0.94, @@ -430,13 +422,11 @@ class _GoogleMapScreenState extends State { myLocationButtonEnabled: false, compassEnabled: false, mapToolbarEnabled: false, - style: null, // You can add custom styling here ) ) ), ), - // Stats Overlay Positioned( top: 115, left: 25, right: 25, child: Container( @@ -460,7 +450,6 @@ class _GoogleMapScreenState extends State { ), ), - // Countdown Overlay if (_isCountingDown) Container( color: Colors.black87, @@ -479,7 +468,7 @@ class _GoogleMapScreenState extends State { ), ], ), - floatingActionButton: Padding( + floatingActionButton: _isCountingDown ? null : Padding( padding: const EdgeInsets.only(bottom: 20.0), child: FloatingActionButton.extended( onPressed: _isRunning ? _finishRun : _showStartConfirmation,