Remove floating navigation buttons from map
Remove the floating "Navigate" and "Stop" buttons positioned on the right side of the map. These actions are already available in the bottom button bar, so the floating buttons were redundant. Updated dark_mode_map.dart: - Removed Positioned floating button column (right: 16, bottom: 120) - Removed floating "Navigate" button (shown when delivery selected) - Removed floating "Stop" button (shown when navigating) The bottom action bar now contains all necessary navigation controls. Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
128e473374
commit
c58da58f1f
@ -338,31 +338,6 @@ class _DarkModeMapComponentState extends State<DarkModeMapComponent> {
|
||||
),
|
||||
),
|
||||
),
|
||||
// Navigation and action buttons (positioned above bottom button bar)
|
||||
Positioned(
|
||||
bottom: 120,
|
||||
right: 16,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
// Start navigation button
|
||||
if (widget.selectedDelivery != null && !_isNavigating)
|
||||
_buildActionButton(
|
||||
label: _isStartingNavigation || _isInitializing ? 'Loading...' : 'Navigate',
|
||||
icon: Icons.directions,
|
||||
onPressed: _isStartingNavigation || _isInitializing ? null : _startNavigation,
|
||||
color: SvrntyColors.crimsonRed,
|
||||
),
|
||||
if (_isNavigating)
|
||||
_buildActionButton(
|
||||
label: 'Stop',
|
||||
icon: Icons.stop,
|
||||
onPressed: _stopNavigation,
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
// Bottom action button bar
|
||||
if (widget.selectedDelivery != null)
|
||||
Positioned(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user