-
Notifications
You must be signed in to change notification settings - Fork 11
/
main.dart
32 lines (29 loc) · 884 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
import 'package:firebaselogin/SignIn.dart';
import 'package:firebaselogin/SignUp.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'HomePage.dart';
void main() => runApp(MyApp());
// First put json file in android and json
// use gradle in android plugin
// yaml for firebase
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Firebase Loogin',
theme: ThemeData(),
home: HomePage(),
routes: {
'/home': (BuildContext context)=> HomePage(),
'/signin': (BuildContext context)=> SignIn(),
'/signup': (BuildContext context)=> SignUp(),
},
);
}
}