diff --git a/lib/app_view.dart b/lib/app_view.dart index 667a06e..fd0f1be 100644 --- a/lib/app_view.dart +++ b/lib/app_view.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:prosappco/screens/authentication/welcome_screen.dart'; import 'package:prosappco/screens/home/home_screen.dart'; +import 'package:prosappco/screens/splash/splash_screen.dart'; import 'blocs/authentication_bloc/authentication_bloc.dart'; @@ -35,9 +36,7 @@ class MyAppView extends StatelessWidget { return const WelcomeScreen(); case AuthenticationStatus.unknown: - return const Center( - child: CircularProgressIndicator(), // splash screen - ); + return const SplashScreen(); } }), ); diff --git a/lib/screens/splash/splash_screen.dart b/lib/screens/splash/splash_screen.dart new file mode 100644 index 0000000..998a4ba --- /dev/null +++ b/lib/screens/splash/splash_screen.dart @@ -0,0 +1,23 @@ +import 'package:flutter/material.dart'; + +class SplashScreen extends StatelessWidget { + const SplashScreen({Key? key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Image.asset( + 'images/splash.png', + width: 600, + height: 600, + ), + ], + ), + ), + ); + } +}