From 054640e56335974d603d399a46def2ac6d74749a Mon Sep 17 00:00:00 2001 From: pahmiudahgede Date: Thu, 15 May 2025 18:02:44 +0700 Subject: [PATCH] refact: remove pickture in splash screen and centering text --- lib/features/launch/splash_screen.dart | 33 ++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/lib/features/launch/splash_screen.dart b/lib/features/launch/splash_screen.dart index 616d79c..fcec64b 100644 --- a/lib/features/launch/splash_screen.dart +++ b/lib/features/launch/splash_screen.dart @@ -69,18 +69,11 @@ class SplashScreenState extends State { 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 { ), ), ), - ), - - if (_isCheckingConnection) - Align( - alignment: Alignment.center, - child: CircularProgressIndicator(), - ), - ], + + if (_isCheckingConnection) + Align( + alignment: Alignment.center, + child: CircularProgressIndicator(), + ), + ], + ), ), ); }