Skip to content

Images consistently disappear or turn black when app is backgrounded on iOS and Android #26654

@KevinTheGray

Description

@KevinTheGray

If you have an image and background the app, then return to the app, all images will be black. this happens 100% of the time. It does not matter what the image is, it is happening with every image.

This will only happen with an actual device. Does not happen on a simulator.

Example video: https://www.youtube.com/watch?v=IPqctRzgws4

Here's sample code to get it to happen:

@override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey,
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Image.asset('assets/download.jpeg'),
    );
  }

Steps to Reproduce

  1. Have a widget with an image on screen
  2. Background the app or pull down the shade.
  3. Observe issue

No analyzer issues or logs

[✓] Flutter (Channel master, v1.1.10-pre.83, on Mac OS X 10.13.6 17G4015, locale en-US)
    • Flutter version 1.1.10-pre.83 at /Users/KG/Developer/Flutter/flutter
    • Framework revision b4e9d0a440 (2 hours ago), 2019-01-16 08:47:37 -0800
    • Engine revision 3c0aa918de
    • Dart version 2.1.1 (build 2.1.1-dev.1.0 492df72739)

⡿f⢿^R
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/KG/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/KG/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4892.25

[✓] Connected device (2 available)
    • iPhone    • 00008020-000A60D43688003A            • ios • iOS 12.1.2
    • iPhone XR • E16CDE36-3E2E-4C5D-B55B-6617AB71FA2F • ios • iOS 12.1 (simulator)

Metadata

Metadata

Assignees

Labels

c: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.waiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions