Repository: flutter
Issue: Black screen after splash if FlutterActivityLaunchConfigs.BackgroundMode.transparent is used
Labels: platform-android,engine,c: rendering,has reproducible steps,P2,found in release: 2.10,found in release: 2.11,team-android,triaged-android

To fix black screen issues described in #74801, I used snippet from comments 
```java
public class MyFlutterActivity extends FlutterActivity {
  ....
    @NonNull
    protected FlutterActivityLaunchConfigs.BackgroundMode getBackgroundMode() {
        return FlutterActivityLaunchConfigs.BackgroundMode.transparent;
    }
   ....
}
```

After updating to Flutter 2.5 the following message has appeared:
> A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.

I followed the instructions and removed mentioned code from `AndroidManifest`

The framework is suggesting to remove 
```
    <meta-data
      android:name="io.flutter.embedding.android.SplashScreenDrawable"
      android:resource="@drawable/launch_background"
      />
```

Now the splash screen shows only for a moment then going to black screen till the first page is rendered. 

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Create new clean flutter app with `flutter create splash_issue`.
2. Replace contents of `android/app/src/main/kotlin/com/example/splash_issue/MainActivity.kt` with contents of code sample.
3. Execute `flutter run` 

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```kotlin
package com.example.splash_issue

import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.android.FlutterActivityLaunchConfigs;

class MainActivity: FlutterActivity() {
    override fun getBackgroundMode(): FlutterActivityLaunchConfigs.BackgroundMode {
        return FlutterActivityLaunchConfigs.BackgroundMode.transparent
    }
}
```

</details>

<details>
  <summary>Logs</summary>

```
[  +25 ms] /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell getprop
[  +83 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +10 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +125 ms] Multiple devices found:
[   +7 ms] ro.hardware = ranchu
[ +106 ms] sdk gphone x86 (mobile) • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
[   +2 ms] iPhone X (375) (mobile) • EBB01292-0A7D-4409-8F01-0DB5B289A0FF • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
[        ] Chrome (web)            • chrome                               • web-javascript • Google Chrome 98.0.4758.102
[   +2 ms] [1]: sdk gphone x86 (emulator-5554)
[        ] [2]: iPhone X (375) (EBB01292-0A7D-4409-8F01-0DB5B289A0FF)
[        ] [3]: Chrome (chrome)
[   +3 ms] Please choose one (To quit, press "q/Q")
[        ] : 
[+12694 ms] 1
[  +29 ms] Skipping pub get: version match.
[ +197 ms] Generating /Users/tumist/Documents/Flutter Projects/splash_issue/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +113 ms] Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +54 ms] Initializing file store
[  +23 ms] Skipping target: gen_localizations
[  +11 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/tumist/Documents/Flutter
Projects/splash_issue/.dart_tool/package_config_subset}
[  +40 ms] gen_dart_plugin_registrant: Complete
[   +2 ms] Skipping target: _composite
[   +4 ms] complete
[   +8 ms] Launching lib/main.dart on sdk gphone x86 in debug mode...
[   +9 ms] /Users/tumist/DevTools/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/Users/tumist/DevTools/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/tumist/DevTools/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-DFLUTTER_WEB_AUTO_DETECT=true --output-dill /var/folders/0p/9wghhm9j6kx4pm6rxsp8y3940000gn/T/flutter_tools.tLZhOq/flutter_tool.K7HqIp/app.dill --packages
/Users/tumist/Documents/Flutter Projects/splash_issue/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +18 ms] executing: /Users/tumist/DevTools/Android/SDK/build-tools/31.0.0/aapt dump xmltree /Users/tumist/Documents/Flutter
Projects/splash_issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +23 ms] Exit code 0 from: /Users/tumist/DevTools/Android/SDK/build-tools/31.0.0/aapt dump xmltree /Users/tumist/Documents/Flutter
Projects/splash_issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.splash_issue" (Raw: "com.example.splash_issue")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="splash_issue" (Raw: "splash_issue")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.splash_issue.MainActivity" (Raw: "com.example.splash_issue.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=41)
                     E: action (line=42)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=44)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=51)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +19 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +37 ms] <- compile package:splash_issue/main.dart
[  +61 ms] --------- beginning of main
           02-17 17:48:42.576 I/GMS_MM_Logger(10917): Memory Metric Logging not allowed. Stopping.
[  +28 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb version
[  +32 ms] Android Debug Bridge version 1.0.41
           Version 32.0.0-8006631
           Installed as /Users/tumist/DevTools/Android/SDK/platform-tools/adb
[   +5 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb start-server
[  +36 ms] Building APK
[  +34 ms] Running Gradle task 'assembleDebug'...
[  +13 ms] Using gradle from /Users/tumist/Documents/Flutter Projects/splash_issue/android/gradlew.
[ +512 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[  +16 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[        ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/
lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","MainClass":"com.intellij.idea.Main","Properties":{"idea.paths.selector":"AndroidStudio2021.1","idea
.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.vendor.name":"Google","idea.home.path":"$APP_PACKAGE\/Contents"}},"NSDesktopFolderUsageDescription":"An
application in Android Studio requests access to the user's Desktop
folder.","LSArchitecturePriority":["arm64","x86_64"],"CFBundleVersion":"AI-211.7628.21.2111.8139111","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An
application in Android Studio requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBund
lePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"2021.1","NSMicrophoneUsageDescription":"An application in
Android Studio requests access to the device's microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in
Android Studio requests access to the user's location
information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifie
r":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsag
eDescription":"An application in Android Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests
access to the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network
volume.","CFBundleGetInfoString":"Android Studio 2021.1, build AI-211.7628.21.2111.8139111. Copyright JetBrains s.r.o., (c) 2000-2022","NSRemovableVolumesUsageDescription":"An
application in Android Studio requests access to files on a removable volume.","NSBluetoothAlwaysUsageDescription":"An application in Android Studio requests access to
Bluetooth."}
[  +10 ms] executing: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java -version
[ +150 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java -version
[   +1 ms] openjdk version "11.0.11" 2021-04-20
           OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
           OpenJDK 64-Bit Server VM (build 11.0.11+0-b60-7590822, mixed mode)
[   +4 ms] executing: [/Users/tumist/Documents/Flutter Projects/splash_issue/android/] /Users/tumist/Documents/Flutter Projects/splash_issue/android/gradlew -Pverbose=true
-Ptarget-platform=android-x86 -Ptarget=/Users/tumist/Documents/Flutter Projects/splash_issue/lib/main.dart -Pbase-application-name=android.app.Application
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root
assembleDebug
[+1845 ms] Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
[   +4 ms] Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
[        ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
[        ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
[        ] Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
[  +88 ms] > Task :app:compileFlutterBuildDebug UP-TO-DATE
[        ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[  +94 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +498 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[  +98 ms] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[+1097 ms] > Task :app:compileDebugKotlin
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:compressDebugAssets UP-TO-DATE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[ +100 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[ +300 ms] > Task :app:mergeDebugJavaResource
[ +100 ms] > Task :app:dexBuilderDebug
[ +105 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[+1191 ms] > Task :app:mergeDexDebug
[+1100 ms] > Task :app:packageDebug
[ +192 ms] > Task :app:assembleDebug
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 6s
[        ] 32 actionable tasks: 9 executed, 23 up-to-date
[ +405 ms] Running Gradle task 'assembleDebug'... (completed in 7.9s)
[  +65 ms] calculateSha: LocalDirectory: '/Users/tumist/Documents/Flutter Projects/splash_issue/build/app/outputs/flutter-apk'/app.apk
[ +969 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +7 ms] executing: /Users/tumist/DevTools/Android/SDK/build-tools/31.0.0/aapt dump xmltree /Users/tumist/Documents/Flutter
Projects/splash_issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +35 ms] Exit code 0 from: /Users/tumist/DevTools/Android/SDK/build-tools/31.0.0/aapt dump xmltree /Users/tumist/Documents/Flutter
Projects/splash_issue/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +1 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f
               A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
               A: package="com.example.splash_issue" (Raw: "com.example.splash_issue")
               A: platformBuildVersionCode=(type 0x10)0x1f
               A: platformBuildVersionName=(type 0x10)0xc
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=16)
                 A: android:label(0x01010001)="splash_issue" (Raw: "splash_issue")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=22)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.splash_issue.MainActivity" (Raw: "com.example.splash_issue.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=37)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: intent-filter (line=41)
                     E: action (line=42)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=44)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=51)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +5 ms] Stopping app 'app.apk' on sdk gphone x86.
[   +1 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell am force-stop com.example.splash_issue
[ +110 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell pm list packages com.example.splash_issue
[  +91 ms] package:com.example.splash_issue
[   +3 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.splash_issue.sha1
[  +54 ms] bffbe5f4aa784a8c19f53a9bad1ebe9d52dda866
[   +1 ms] Installing APK.
[   +3 ms] Installing build/app/outputs/flutter-apk/app.apk...
[        ] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 install -t -r /Users/tumist/Documents/Flutter
Projects/splash_issue/build/app/outputs/flutter-apk/app.apk
[+1810 ms] Performing Streamed Install
                    Success
[   +3 ms] Installing build/app/outputs/flutter-apk/app.apk... (completed in 1,811ms)
[   +2 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell echo -n cfd9496b8ac5858b394c7a4c41846b12b2b6deca >
/data/local/tmp/sky.com.example.splash_issue.sha1
[ +130 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +176 ms] --------- beginning of system
                    02-17 17:48:56.262 W/BroadcastQueue(  514): Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED
                    dat=package:com.example.splash_issue flg=0x4000010 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy
[  +21 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez
enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true
com.example.splash_issue/com.example.splash_issue.MainActivity
[ +287 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.splash_issue/.MainActivity (has extras) }
[   +1 ms] Waiting for observatory port to be available...
[+3196 ms] Observatory URL on device: http://127.0.0.1:46429/vPsViC0s--A=/
[   +9 ms] executing: /Users/tumist/DevTools/Android/SDK/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:46429
[  +57 ms] 63594
[        ] Forwarded host port 63594 to device port 46429 for Observatory
[+2002 ms] Caching compiled dill
[  +51 ms] Connecting to service protocol: http://127.0.0.1:63594/vPsViC0s--A=/
[ +460 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:63594/vPsViC0s--A=/.
[ +260 ms] DDS is listening at http://127.0.0.1:63604/9XmQ7c0k_Yc=/.
[ +107 ms] Successfully connected to service protocol: http://127.0.0.1:63594/vPsViC0s--A=/
[ +119 ms] DevFS: Creating new filesystem on the device (null)
[  +71 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.splash_issue/code_cache/splash_issueYTJSGD/splash_issue/)
[   +5 ms] Updating assets
[ +189 ms] Syncing files to device sdk gphone x86...
[   +4 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +5 ms] <- recompile package:splash_issue/main.dart 236882ee-5733-4d27-8832-bab0f05c016d
[        ] <- 236882ee-5733-4d27-8832-bab0f05c016d
[ +339 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device sdk gphone x86... (completed in 351ms)
[   +1 ms] Synced 0.0MB.
[   +3 ms] <- accept
[   +7 ms] Connected to _flutterView/0xeb80e240.
[   +5 ms] Flutter run key commands.
[   +2 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[   +1 ms] An Observatory debugger and profiler on sdk gphone x86 is available at: http://127.0.0.1:63604/9XmQ7c0k_Yc=/
[   +2 ms] The Flutter DevTools debugger and profiler on sdk gphone x86 is available at: http://127.0.0.1:9104?uri=http://127.0.0.1:63604/9XmQ7c0k_Yc=/
```

```
tumist@MacBook splash_issue % flutter analyze
Analyzing splash_issue...                                               
No issues found! (ran in 3.7s)
```

```
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.2.1 21D62 darwin-x64, locale en-RU)
    • Flutter version 2.8.1 at /Users/tumist/DevTools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (9 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/tumist/DevTools/Android/SDK
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
    • iPhone X (375) (mobile) • EBB01292-0A7D-4409-8F01-0DB5B289A0FF • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
    • Chrome (web)            • chrome                               • web-javascript • Google Chrome 98.0.4758.102

• No issues found!
```
</details>


https://user-images.githubusercontent.com/2943278/154469513-8a2a1593-7e2a-4dca-818e-b4f74f48cbb5.mov