Closed pratik037 closed 3 years ago
You can use Stack, this works for me:
Stack(
children: <Widget>[
SplashScreen(
seconds: 1,
navigateAfterSeconds: ListViewPage(),
backgroundColor: Colors.white,
loaderColor: Colors.transparent,
),
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/logo.png"),
fit: BoxFit.fitWidth,
),
),
),
],
);
You can use Stack, this works for me:
Stack( children: <Widget>[ SplashScreen( seconds: 1, navigateAfterSeconds: ListViewPage(), backgroundColor: Colors.white, loaderColor: Colors.transparent, ), Container( decoration: BoxDecoration( image: DecorationImage( image: AssetImage("assets/images/logo.png"), fit: BoxFit.fitWidth, ), ), ), ], );
Thank you @SonQBChau
How to Center the image on the screen if we don't have any text?