• Dwayne Slater's avatar
    Set _imageInfo to null BEFORE adding listener to new ImageStream (#13825) · 4488f58a
    Dwayne Slater authored
    * Set _imageInfo to null before adding listener to new ImageStream
    
    Fixes an edge case where switching the ImageStream to an already completed ImageStream caused the Image widget to show nothing. ImageStreamCompleter calls the listener during addListener if their image is already loaded.
    
    * Fix whitespace
    
    * Add test to verify correct behavior
    
    * Added test from mravn-google's PR
    4488f58a
image_test.dart 15.4 KB