First , I paint a picture on the canvas and call "endRecording().toImage" to save the image. It is possible to return empty data.This operation may need to be repeated multiple times.
This problem does not appear in the version "v1.7.8+hotfix.4".
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale zh-Hans-HK)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.37.1)
[!] Connected device
! No devices available