mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Using ImageResource solves two problems: 1) Listeners can be notified synchronously when the sky.Image is already available. This change removes flash of 0x0 layout when moving an already-cached image around in the render tree. 2) In the future, when we support animated images, we can notify listeners multiple times whenever a new image is available.