How to implement a splash screen

70 views
Skip to first unread message

owusu sampson

unread,
May 13, 2021, 11:01:06 AM5/13/21
to Flutter Development (flutter-dev)
Hi everyone, am trying to implement a splash screen in my flutter app but am having a challenge. I have tried the flutter launch screen from their website but still won't work so I decided to create a separate screen for the splash screen and set it as the initialRoute this works but when I press the back button instead of going to the home desktop the splash screen show again. Please can anyone help me?

Gedeon Muissa

unread,
May 13, 2021, 2:02:33 PM5/13/21
to owusu sampson, Flutter Development (flutter-dev)
Display the splash screen. Initiate a counter like for 3 to 5 seconds then pushReplacement. It will kill the splash screen and direct you to your Home Screen 

On Thu, 13 May 2021 at 6:01 PM, owusu sampson <owususa...@gmail.com> wrote:
Hi everyone, am trying to implement a splash screen in my flutter app but am having a challenge. I have tried the flutter launch screen from their website but still won't work so I decided to create a separate screen for the splash screen and set it as the initialRoute this works but when I press the back button instead of going to the home desktop the splash screen show again. Please can anyone help me?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/44c34322-333f-411c-85ea-d0993af37f66n%40googlegroups.com.

Gedeon Muissa

unread,
May 15, 2021, 8:48:40 PM5/15/21
to owusu sampson, Flutter Development (flutter-dev)

On Thu, May 13, 2021 at 6:01 PM owusu sampson <owususa...@gmail.com> wrote:
Hi everyone, am trying to implement a splash screen in my flutter app but am having a challenge. I have tried the flutter launch screen from their website but still won't work so I decided to create a separate screen for the splash screen and set it as the initialRoute this works but when I press the back button instead of going to the home desktop the splash screen show again. Please can anyone help me?

--

Steepe Hare

unread,
May 16, 2021, 10:22:40 AM5/16/21
to Flutter Development (flutter-dev)
There's a good package for it:
Reply all
Reply to author
Forward
0 new messages