usuario autentificado
This commit is contained in:
+13
-4
@@ -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(),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user