Skip to content

Commit 87bc809

Browse files
committed
feat: add global article details route
1 parent 1c864c3 commit 87bc809

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/router/routes.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ abstract final class Routes {
9696
'article/:id'; // Relative to accountSavedHeadlines
9797
static const String accountArticleDetailsName = 'accountArticleDetails';
9898

99+
// --- Global Article Details ---
100+
// This route is intended for accessing article details from contexts
101+
// outside the main bottom navigation shell (e.g., from entity detail pages).
102+
static const globalArticleDetails = '/article/:id'; // Top-level path
103+
static const globalArticleDetailsName = 'globalArticleDetails';
104+
99105
// --- Manage Followed Items Sub-Routes (relative to /account/manage-followed-items) ---
100106
static const followedCategoriesList = 'categories';
101107
static const followedCategoriesListName = 'followedCategoriesList';

0 commit comments

Comments
 (0)