This commit is contained in:
Felipe
2024-02-16 14:29:17 -05:00
parent 1b565d70f4
commit 159ffedc6e
2 changed files with 25 additions and 3 deletions
+2 -3
View File
@@ -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();
}
}),
);
+23
View File
@@ -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,
),
],
),
),
);
}
}