Skip to content

Commit 69fddcd

Browse files
committed
feat(router): add archived content routes and placeholders
- Remove ArchivedContentPage import and route - Add separate routes for archived headlines, topics, and sources - Implement placeholder pages for new archived content routes
1 parent 1aee2f4 commit 69fddcd

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

lib/router/router.dart

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/content_manageme
1717
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/view/edit_headline_page.dart';
1818
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/view/edit_source_page.dart';
1919
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/view/edit_topic_page.dart';
20-
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/view/archived_content_page.dart';
2120
import 'package:flutter_news_app_web_dashboard_full_source_code/dashboard/view/dashboard_page.dart';
2221
import 'package:flutter_news_app_web_dashboard_full_source_code/router/routes.dart';
2322
import 'package:flutter_news_app_web_dashboard_full_source_code/settings/view/settings_page.dart';
@@ -198,9 +197,22 @@ GoRouter createRouter({
198197
},
199198
),
200199
GoRoute(
201-
path: Routes.archivedContent,
202-
name: Routes.archivedContentName,
203-
builder: (context, state) => const ArchivedContentPage(),
200+
path: Routes.archivedHeadlines,
201+
name: Routes.archivedHeadlinesName,
202+
builder: (context, state) =>
203+
const Placeholder(),
204+
),
205+
GoRoute(
206+
path: Routes.archivedTopics,
207+
name: Routes.archivedTopicsName,
208+
builder: (context, state) =>
209+
const Placeholder(),
210+
),
211+
GoRoute(
212+
path: Routes.archivedSources,
213+
name: Routes.archivedSourcesName,
214+
builder: (context, state) =>
215+
const Placeholder(),
204216
),
205217
],
206218
),

0 commit comments

Comments
 (0)