-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
41 lines (37 loc) · 1.15 KB
/
main.dart
File metadata and controls
41 lines (37 loc) · 1.15 KB
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
35
36
37
38
39
40
41
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'firebase_options.dart';
import 'screens/login.dart';
import 'screens/signup.dart';
import 'screens/home.dart';
import 'screens/auction_host.dart';
import 'screens/auction_viewer.dart';
import 'screens/storefront.dart';
import 'screens/payment_info.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(NeighborNestApp());
}
class NeighborNestApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'NeighborNest',
theme: ThemeData(primarySwatch: Colors.teal),
debugShowCheckedModeBanner: false,
initialRoute: '/',
routes: {
'/': (_) => LoginScreen(),
'/signup': (_) => SignupScreen(),
'/home': (_) => HomeScreen(),
'/auction-viewer': (_) => AuctionViewerScreen(),
'/auction-host': (_) => AuctionHostScreen(),
'/storefront': (_) => StorefrontScreen(),
'/payment-info': (_) => PaymentInfoScreen(),
},
);
}
}