refact: remove pickture in splash screen and centering text
This commit is contained in:
parent
9bbfd4529a
commit
054640e563
|
@ -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(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue