Splash screen : Logo in the middle of the screen and add text at the bottom of the screen !

278 views
Skip to first unread message

Pascal Fournier

unread,
Jul 17, 2019, 9:51:29 PM7/17/19
to Flutter Development (flutter-dev)
Hello to all !

I want to create a splash screen but i have some difficulty to do what i want.

I want to place the logo in the middle of the screen... for that i know i can use Center() Widget but how to add text at the bottom of the screen and keep the logo in the middle?

Should i use stack ?

Thanks a lot for your help :)

Pascal

邰金宇

unread,
Jul 18, 2019, 4:54:02 AM7/18/19
to Flutter Development (flutter-dev)
...
Column(
 children <Widget>[
  Expand(
   flex : 1,
   child : Center(),
  )
  Text(),
 ]
)
...

I hope it helps.

在 2019年7月18日星期四 UTC+8上午9:51:29,Pascal Fournier写道:

Pascal Fournier

unread,
Jul 18, 2019, 10:58:21 AM7/18/19
to Flutter Development (flutter-dev)
Hello !

Thanks a lot ! 
Yes it works.. But the logo is not perfectly in the middle.... when adding text at the bottom.. The logo goes up a little bit...

I would like something like Google Analytic app.... look at the image in Attachment.... the logo is perfectly in the middle... then, there is a text above the logo.

How can i achieve it !

Thanks a lot :)

Pascal Fournier

unread,
Jul 18, 2019, 11:00:36 AM7/18/19
to Flutter Development (flutter-dev)
Hello !

Thanks a lot ! 
Yes it works.. But the logo is not perfectly in the middle.... when adding text at the bottom.. The logo goes up a little bit...

I would like something like Google Analytic app.... look at the image in Attachment.... the logo is perfectly in the middle... then, there is a text above the logo.

How can i achieve it !

Thanks a lot :)

Le jeudi 18 juillet 2019 04:54:02 UTC-4, 邰金宇 a écrit :
IMG_2488.PNG
Reply all
Reply to author
Forward
0 new messages