refact: remove pickture in splash screen and centering text

This commit is contained in:
pahmiudahgede 2025-05-15 18:02:44 +07:00
parent 9bbfd4529a
commit 054640e563
1 changed files with 13 additions and 20 deletions

View File

@ -69,18 +69,11 @@ class SplashScreenState extends State<SplashScreen> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: primaryColor,
body: Stack(
children: [
Positioned(
bottom: 0,
left: 0,
right: 0,
child: Image.asset('assets/image/Go_Ride.png', height: 200),
),
Align(
alignment: Alignment.center,
child: Padding(
padding: const EdgeInsets.only(bottom: 250.0),
body: Center(
child: Stack(
children: [
Align(
alignment: Alignment.center,
child: Text(
'Rijig',
style: TextStyle(
@ -91,14 +84,14 @@ class SplashScreenState extends State<SplashScreen> {
),
),
),
),
if (_isCheckingConnection)
Align(
alignment: Alignment.center,
child: CircularProgressIndicator(),
),
],
if (_isCheckingConnection)
Align(
alignment: Alignment.center,
child: CircularProgressIndicator(),
),
],
),
),
);
}