-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.dart
34 lines (31 loc) · 1022 Bytes
/
main.dart
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
26
27
28
29
30
31
32
33
34
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:pal_finder/screens/home.dart';
import 'package:pal_finder/screens/login.dart';
import 'package:pal_finder/screens/place_search.dart';
import 'package:pal_finder/screens/event.dart';
import 'package:pal_finder/screens/new_event.dart';
void main() async {
await DotEnv().load('.env');
runApp(MyApp());
}
class MyApp extends StatelessWidget {
static const String _title = 'Pal Finder';
@override
Widget build(BuildContext context) {
// print('Building MyApp');
return MaterialApp(
title: _title,
// navigatorKey: navigatorKey,
initialRoute: '/',
routes: {
'/': (context) => SplashScreen(),
'/login': (context) => LoginScreen(),
'/home': (context) => HomeScreen(),
'/place': (context) => PlaceSearchScreen(),
'/event_detail': (context) => EventScreen(),
'/event_create': (context) => NewEventScreen(),
},
);
}
}