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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user