398ac5af63
Lifts scoring state from ScoringPage to MainNavigationPage level to preserve scores and rule modes when switching between navigation views. State management improvements: - MainNavigationPage now manages persistent scoring state (arrows per end, scores array) - ScoringPage accepts initial state parameters and callback functions - All score modifications notify parent to maintain state consistency - Deep copying ensures proper state isolation between parent and child Persistence features: - Scores remain intact when navigating to Settings and back to Main scorer - Arrow count mode (3/6 arrows) preserved across view switches - All sophisticated end interaction behaviors maintained within scoring context - Confirmation dialogs for rule changes still work with persistent state Technical implementation: - State lifting pattern following Flutter best practices - Callback functions for bidirectional communication between parent and child - Deep copying of score arrays prevents reference sharing issues - Clean separation of navigation state from scoring logic This enhancement ensures professional UX where users can navigate between app sections without losing their scoring progress or configuration settings. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>