blob: dc8ba746f787bdea9712635342b64c6c408b4126 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import 'package:flutter/material.dart';
import 'routes.dart';
import 'login.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Carpool App',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
initialRoute: '/routes', // Set the initial route to the login page
routes: {
'/login': (context) => LoginPage(),
'/routes': (context) => RoutesPage(),
},
);
}
}
|