Skip to content

Commit

Permalink
Solve the conflict of pages
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed Dec 31, 2023
1 parent 11bd0af commit 6ecd70e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TrafficReportApp extends StatelessWidget {
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
useMaterial3: true,
),
initialRoute: '/',

routes: {
...map_routes.mapRoutes,
...reports_routes.reportsRoutes,
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/accounts/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'social_connections_page.dart';

Map<String, WidgetBuilder> accountsRoutes = {
'/login': (context) => const LoginPage(),
'/account': (context) => const AccountPage(),
'/accounts': (context) => const AccountPage(),
'/register': (context) => const RegisterPage(),
'/verify': (context) => const VerifyPage(),
'/account-delete-confirm': (context) => const AccountDeleteConfirmPage(),
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/map/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import 'package:flutter/material.dart';
import 'home_map.dart';

Map<String, WidgetBuilder> mapRoutes = {
'/': (context) => const HomeMapScreen(),
'/home': (context) => const HomeMapScreen(),
// ... 其他地圖相關路由
};

0 comments on commit 6ecd70e

Please sign in to comment.