diff --git a/lib/main.dart b/lib/main.dart index 7a856af..236a923 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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(), + ); + } + } }