Delete splash screen guidance with old APIs (flutter/engine#35014)

This commit is contained in:
Camille Simon
2022-08-02 14:51:04 -07:00
committed by GitHub
parent b3f5b31b6d
commit f428a1aa1f

View File

@@ -164,12 +164,14 @@ import java.util.List;
*
* <p><strong>Launch Screen and Splash Screen</strong>
*
* <p>{@code FlutterActivity} supports the display of an Android "launch screen" as well as a
* Flutter-specific "splash screen". The launch screen is displayed while the Android application
* loads. It is only applicable if {@code FlutterActivity} is the first {@code Activity} displayed
* upon loading the app. After the launch screen passes, a splash screen is optionally displayed.
* The splash screen is displayed for as long as it takes Flutter to initialize and render its first
* frame.
* <p>{@code FlutterActivity} supports the display of an Android "launch screen", which is displayed
* while the Android application loads. It is only applicable if {@code FlutterActivity} is the
* first {@code Activity} displayed upon loading the app.
*
* <p>Prior to Flutter 2.5, {@code FlutterActivity} supported the display of a Flutter-specific
* "splash screen" that would be displayed after the launch screen passes. This has since been
* deprecated. If a launch screen is specified, it will automatically persist for as long as it
* takes Flutter to initialize and render its first frame.
*
* <p>Use Android themes to display a launch screen. Create two themes: a launch theme and a normal
* theme. In the launch theme, set {@code windowBackground} to the desired {@code Drawable} for the
@@ -198,13 +200,6 @@ import java.util.List;
* initialization, subclass {@code FlutterActivity} and override {@link #provideSplashScreen()}. See
* {@link SplashScreen} for details on implementing a splash screen.
*
* <p>Flutter ships with a splash screen that automatically displays the exact same {@code
* windowBackground} as the launch theme discussed previously. To use that splash screen, include
* the following metadata in AndroidManifest.xml for this {@code FlutterActivity}:
*
* <p>{@code <meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable"
* android:resource="@drawable/launch_background" /> }
*
* <p><strong>Alternative Activity</strong> {@link FlutterFragmentActivity} is also available, which
* is similar to {@code FlutterActivity} but it extends {@code FragmentActivity}. You should use
* {@code FlutterActivity}, if possible, but if you need a {@code FragmentActivity} then you should