usuario autentificado

This commit is contained in:
Juan Felipe Duarte
2023-03-28 21:33:13 -05:00
parent 2e6275063b
commit 4727967a57
+13 -4
View File
@@ -41,12 +41,21 @@ class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => ChangeNotifierProvider(
create: (context) => GoogleSignProvider(),
child: MaterialApp(
Widget build(BuildContext context) {
if (_auth.currentUser == null) {
return MaterialApp(
theme: ThemeData(fontFamily: 'Poppins'),
debugShowCheckedModeBanner: false,
title: 'ProsApp',
home: LoginScreen(),
));
);
} else {
return MaterialApp(
theme: ThemeData(fontFamily: 'Poppins'),
debugShowCheckedModeBanner: false,
title: 'ProsApp',
home: WelcomeScreen(),
);
}
}
}