Fix Google Navigation initialization timing issues

Restructures navigation session initialization to occur after the view is
created, eliminating race conditions. Session initialization now happens in
onViewCreated callback with proper delay before setting destination.

Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jean-Philippe Brule
2025-11-15 20:49:20 -05:00
parent 46af8f55a2
commit 9cb5b51f6d
11 changed files with 558 additions and 192 deletions
+8 -4
View File
@@ -8,6 +8,7 @@ class DeliveryListItem extends StatefulWidget {
final bool isSelected;
final VoidCallback onTap;
final VoidCallback? onCall;
final Function(String)? onAction;
final int? animationIndex;
const DeliveryListItem({
@@ -16,6 +17,7 @@ class DeliveryListItem extends StatefulWidget {
required this.isSelected,
required this.onTap,
this.onCall,
this.onAction,
this.animationIndex,
});
@@ -112,10 +114,12 @@ class _DeliveryListItemState extends State<DeliveryListItem>
),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: _isHovered || widget.isSelected
? Theme.of(context).colorScheme.surfaceContainer
: Colors.transparent,
boxShadow: _isHovered || widget.isSelected
color: widget.delivery.delivered
? Colors.green.withOpacity(0.15)
: (_isHovered || widget.isSelected
? Theme.of(context).colorScheme.surfaceContainer
: Colors.transparent),
boxShadow: (_isHovered || widget.isSelected) && !widget.delivery.delivered
? [
BoxShadow(
color: Colors.black.withOpacity(