follow-me, sheet dismissal, zoom/centering on start

This commit is contained in:
stopflock
2025-10-02 19:19:36 -05:00
parent 40c78ab3b7
commit c6db4396e4
2 changed files with 116 additions and 7 deletions
+3 -1
View File
@@ -7,10 +7,12 @@ import '../app_state.dart';
class NavigationSheet extends StatelessWidget {
final VoidCallback? onStartRoute;
final VoidCallback? onResumeRoute;
const NavigationSheet({
super.key,
this.onStartRoute,
this.onResumeRoute,
});
String _formatCoordinates(LatLng coordinates) {
@@ -229,7 +231,7 @@ class NavigationSheet extends StatelessWidget {
child: ElevatedButton.icon(
icon: const Icon(Icons.play_arrow),
label: const Text('Resume'),
onPressed: () => appState.hideRouteOverview(),
onPressed: onResumeRoute ?? () => appState.hideRouteOverview(),
),
),
const SizedBox(width: 12),