usuario autentificado
This commit is contained in:
+13
-4
@@ -41,12 +41,21 @@ class MyApp extends StatelessWidget {
|
|||||||
const MyApp({super.key});
|
const MyApp({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => ChangeNotifierProvider(
|
Widget build(BuildContext context) {
|
||||||
create: (context) => GoogleSignProvider(),
|
if (_auth.currentUser == null) {
|
||||||
child: MaterialApp(
|
return MaterialApp(
|
||||||
theme: ThemeData(fontFamily: 'Poppins'),
|
theme: ThemeData(fontFamily: 'Poppins'),
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
title: 'ProsApp',
|
title: 'ProsApp',
|
||||||
home: LoginScreen(),
|
home: LoginScreen(),
|
||||||
));
|
);
|
||||||
|
} else {
|
||||||
|
return MaterialApp(
|
||||||
|
theme: ThemeData(fontFamily: 'Poppins'),
|
||||||
|
debugShowCheckedModeBanner: false,
|
||||||
|
title: 'ProsApp',
|
||||||
|
home: WelcomeScreen(),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user