feat(notes): Add notes feature with editor page and drawer integration

This commit is contained in:
cogwheel0
2025-12-06 19:44:34 +05:30
parent 4e50b30a54
commit df2a921ffd
10 changed files with 2888 additions and 49 deletions

View File

@@ -16,6 +16,8 @@ import '../../features/auth/views/connection_issue_page.dart';
import '../../features/auth/views/server_connection_page.dart';
import '../../features/chat/views/chat_page.dart';
import '../../features/navigation/views/splash_launcher_page.dart';
import '../../features/notes/views/notes_list_page.dart';
import '../../features/notes/views/note_editor_page.dart';
import '../../features/profile/views/app_customization_page.dart';
import '../../features/profile/views/profile_page.dart';
import '../../l10n/app_localizations.dart';
@@ -242,6 +244,22 @@ final goRouterProvider = Provider<GoRouter>((ref) {
name: RouteNames.appCustomization,
builder: (context, state) => const AppCustomizationPage(),
),
GoRoute(
path: Routes.notes,
name: RouteNames.notes,
builder: (context, state) => const NotesListPage(),
),
GoRoute(
path: Routes.noteEditor,
name: RouteNames.noteEditor,
builder: (context, state) {
final noteId = state.pathParameters['id'];
if (noteId == null || noteId.isEmpty) {
return const NotesListPage();
}
return NoteEditorPage(noteId: noteId);
},
),
];
final router = GoRouter(