|
@@ -1,17 +1,27 @@
|
|
import 'package:firebase_core/firebase_core.dart';
|
|
import 'package:firebase_core/firebase_core.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
+import 'package:flutter/services.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:putra_go/services/auth.dart';
|
|
import 'package:putra_go/services/auth.dart';
|
|
import 'models/user.dart';
|
|
import 'models/user.dart';
|
|
-import 'screens/passenger/userMain.dart';
|
|
|
|
|
|
+import 'screens/passenger/home_page.dart';
|
|
|
|
|
|
void main() async {
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
await Firebase.initializeApp();
|
|
await Firebase.initializeApp();
|
|
- runApp(MyApp());
|
|
|
|
|
|
+ runApp(const MyApp());
|
|
|
|
+ SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
|
|
|
+ statusBarColor: Colors.transparent,
|
|
|
|
+ statusBarIconBrightness: Brightness.dark,
|
|
|
|
+ systemNavigationBarColor: Colors.transparent,
|
|
|
|
+ systemNavigationBarIconBrightness: Brightness.dark,
|
|
|
|
+ ));
|
|
}
|
|
}
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
class MyApp extends StatelessWidget {
|
|
|
|
+ const MyApp({Key? key}) : super(key: key);
|
|
|
|
+
|
|
|
|
+ @override
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
//add stream Provider
|
|
//add stream Provider
|
|
return StreamProvider<User?>.value(
|
|
return StreamProvider<User?>.value(
|