Skip to content

Commit 5ee94d0

Browse files
committed
feat: Add HeadlinesFeedPage and update routes
- Created HeadlinesFeedPage - Updated routes to use it
1 parent 5beb7b6 commit 5ee94d0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/headlines/view/headlines_page.dart renamed to lib/headlines-feed/view/headlines_feed_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:flutter/material.dart';
22

3-
class HeadlinesPage extends StatelessWidget {
4-
const HeadlinesPage({super.key});
3+
class HeadlinesFeedPage extends StatelessWidget {
4+
const HeadlinesFeedPage({super.key});
55

66
@override
77
Widget build(BuildContext context) {

lib/router/router.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import 'package:flutter/material.dart';
22
import 'package:go_router/go_router.dart';
33
import 'package:ht_main/app/view/app_scaffold.dart';
4-
import 'package:ht_main/headlines/view/headlines_page.dart';
4+
import 'package:ht_main/headlines-feed/view/headlines_feed_page.dart';
55
import 'package:ht_main/router/routes.dart';
66

77
final appRouter = GoRouter(
8-
initialLocation: Routes.headlines,
8+
initialLocation: Routes.headlinesFeed,
99
routes: [
1010
ShellRoute(
1111
builder: (context, state, child) {
1212
return AppScaffold(child: child);
1313
},
1414
routes: [
1515
GoRoute(
16-
path: Routes.headlines,
16+
path: Routes.headlinesFeed,
1717
builder: (BuildContext context, GoRouterState state) {
18-
return const HeadlinesPage();
18+
return const HeadlinesFeedPage();
1919
},
2020
),
2121
GoRoute(

lib/router/routes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
abstract final class Routes {
22
static const home = '/';
3-
static const headlines = '/headlines';
3+
static const headlinesFeed = '/headlines-feed';
44
static const search = '/search';
55
static const account = '/account';
66
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: ht_main
22
description: main headlines toolkit mobile app.
3-
version: 0.4.5
3+
version: 0.5.5
44
publish_to: none
55
repository: https://github.com/Headlines-Toolkit/ht-main
66
environment:

0 commit comments

Comments
 (0)