You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/platform-integration/android/splash-screen.md
+35-55Lines changed: 35 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,38 +6,31 @@ description: Learn how to add a splash screen to your Android app.
6
6
7
7
<imgsrc='/assets/images/docs/development/ui/splash-screen/android-splash-screen/splash-screens_header.png'alt="A graphic outlining the launch flow of an app including a splash screen">
8
8
9
-
Splash screens (also known as launch screens) provide
9
+
## Overview
10
+
11
+
A splash screens (also known as a launch screen) provides
10
12
a simple initial experience while your Android app loads.
11
-
They set the stage for your application,
13
+
It sets the stage for your application,
12
14
while allowing time for the app engine
13
15
to load and your app to initialize.
14
16
15
-
## Overview
17
+
You have a couple options for implementing a splash screen:
16
18
17
-
:::warning
18
-
If you are experiencing a crash from implementing a splash screen, you
19
-
might need to migrate your code. See detailed instructions in the
20
-
[Deprecated Splash Screen API Migration guide][].
21
-
:::
19
+
1. You can use one of the packages available on [pub.dev][].
22
20
23
-
In Android, there are two separate screens that you can control:
24
-
a _launch screen_ shown while your Android app initializes,
25
-
and a _splash screen_ that displays while the Flutter experience
26
-
initializes.
21
+
2. You can implement it manually, as shown in the
22
+
[splash screen sample app][]. The rest of this page
23
+
assumes the manual approach.
27
24
28
-
:::note
29
-
As of Flutter 2.5, the launch and splash screens have been
30
-
consolidated—Flutter now only implements the Android launch screen,
31
-
which is displayed until the framework draws the first frame.
32
-
This launch screen can act as both an Android launch screen and an
33
-
Android splash screen via customization, and thus, is referred to
34
-
as both terms. For example of such customization, check out the
35
-
[Android splash screen sample app][].
36
-
37
-
If, prior to 2.5, you used `flutter create` to create an app,
38
-
and you run the app on 2.5 or later, the app might crash.
39
-
For more info, see the [Deprecated Splash Screen API Migration guide][].
0 commit comments