Флаттер: несовместимый цвет экрана между LaunchScreen и MaterialApp Screen - PullRequest
0 голосов
/ 24 апреля 2020

Я пытаюсь устранить очень специфическую проблему, которая возникает только при создании приложений iOS с использованием Flutter. На моем старом ноутбуке цвет экрана между изображением LaunchScreen.storyboard и приложением черный. Однако на моем новом ноутбуке цвет экрана белый. Вот вывод моей flutter doctor -v.

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E266,
    locale en-ID)
    • Flutter version 1.12.13+hotfix.9 at /Users/michaellim/development/flutter
    • Framework revision f139b11009 (4 weeks ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/setup/#android-setup for detailed
      instructions).
      If the Android SDK has been installed to a custom location, set
      ANDROID_HOME to that location.
      You may also want to add it to your PATH environment variable.



[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed
      instructions).

[✓] VS Code (version 1.44.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1

[!] Connected device
    ! No devices available

На обеих машинах установлены идентичные настройки, включая одну и ту же версию Ma c OS X. Я попытаюсь привести воспроизводимый пример, но он кажется сложным, учитывая, что проблема возникает только в определенных устройствах.

...