diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-11-20 17:24:18 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-11-20 17:24:18 +0200 |
| commit | f064b7ad7f29398dda88df28ff7fe38dad70a66f (patch) | |
| tree | e98130dd125e21d403fe281b0e2f740bc9b73a1a /lib | |
| parent | b25419f76f1b325319d7d303d69eca6de77b8fb0 (diff) | |
| download | carpool-f064b7ad7f29398dda88df28ff7fe38dad70a66f.tar.xz carpool-f064b7ad7f29398dda88df28ff7fe38dad70a66f.zip | |
Added cart page route
Diffstat (limited to 'lib')
| -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, |
