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) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
backgroundColor: primaryColor, backgroundColor: primaryColor,
body: Stack( body: Center(
children: [ child: Stack(
Positioned( children: [
bottom: 0, Align(
left: 0, alignment: Alignment.center,
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),
child: Text( child: Text(
'Rijig', 'Rijig',
style: TextStyle( style: TextStyle(
@ -91,14 +84,14 @@ class SplashScreenState extends State<SplashScreen> {
), ),
), ),
), ),
),
if (_isCheckingConnection)
if (_isCheckingConnection) Align(
Align( alignment: Alignment.center,
alignment: Alignment.center, child: CircularProgressIndicator(),
child: CircularProgressIndicator(), ),
), ],
], ),
), ),
); );
} }