summaryrefslogtreecommitdiff
path: root/player-android/lib/router.dart
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-21 22:54:27 +0300
committerPaul Buetow <paul@buetow.org>2026-05-21 22:54:27 +0300
commit444fb60ccacf7cba02467f7d6af2efd5d44e3b3b (patch)
tree5f2b451b11b653071f1bcc35f0a197b1068ae575 /player-android/lib/router.dart
parentd9887828685db241e01436e99885056eb61f06c1 (diff)
Implement NotesEditorScreen with auto-save debounce and clear confirmation (6b)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'player-android/lib/router.dart')
-rw-r--r--player-android/lib/router.dart10
1 files changed, 10 insertions, 0 deletions
diff --git a/player-android/lib/router.dart b/player-android/lib/router.dart
index 617a7f1..e9a441e 100644
--- a/player-android/lib/router.dart
+++ b/player-android/lib/router.dart
@@ -16,6 +16,7 @@ import 'screens/media_grid_screen.dart';
import 'screens/podcast_list_screen.dart';
import 'screens/settings_screen.dart';
import 'screens/share_screen.dart';
+import 'screens/notes_editor_screen.dart';
import 'screens/video_player_screen.dart';
// Re-export AppRoutes so existing callers that import router.dart for routes
@@ -170,6 +171,15 @@ final routerProvider = Provider<GoRouter>((ref) {
);
},
),
+ GoRoute(
+ // Notes editor — shows and edits the user's personal note for a media
+ // item. The ':mediaId' segment is the numeric media item identifier.
+ path: AppRoutes.notes,
+ builder: (context, state) {
+ final mediaId = state.pathParameters['mediaId']!;
+ return NotesEditorScreen(mediaId: mediaId);
+ },
+ ),
],
);
});