diff options
| -rw-r--r-- | lib/main.dart | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/lib/main.dart b/lib/main.dart index 4aea560..82a55d8 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,7 +1,8 @@ import 'package:flutter/material.dart'; -import 'routes.dart'; // Import your RoutesPage file -import 'login.dart'; // Import your LoginPage file -import 'cart.dart'; // Import your CartPage file +import 'routes.dart'; +import 'login.dart'; +import 'cart.dart'; +import 'order_history.dart'; void main() { runApp(MyApp()); @@ -20,12 +21,14 @@ class MyApp extends StatelessWidget { routes: { '/login': (context) => LoginPage(), '/routes': (context) => RoutesPage(), - '/cart': (context) => CartPage(selectedRide: Ride( - name: 'Sample Ride', - startLocation: 'Sample Start', - endLocation: 'Sample End', - time: 'Sample Time', - )), // Assuming a sample ride is passed to the CartPage for testing + '/order_history': (context) => OrderHistoryPage(), + '/cart': (context) => CartPage( + selectedRide: Ride( + name: 'Sample Ride', + startLocation: 'Sample Start', + endLocation: 'Sample End', + time: 'Sample Time', + )), // Assuming a sample ride is passed to the CartPage for testing }, ); } @@ -49,6 +52,7 @@ class HomePage extends StatelessWidget { '/login', '/routes', '/cart', + '/order_history', ].map<DropdownMenuItem<String>>((String value) { return DropdownMenuItem<String>( value: value, |
