screenshot
screenshot copied to clipboard
sometime the capture method returns a null Uint8List
_screenshotController .capture(pixelRatio: 1, delay: const Duration(milliseconds: 20)) .then((Uint8List? image) async { if (image != null) { ...... } else { assert(false); // unexpected !! } }
await _screenshotController
.capture(
// pixelRatio: pixelRatio,
delay: const Duration(milliseconds: 10))
.then((Uint8List? image) async {
print(image);
always null...
Android Pixel 3a Galaxy Z Fold3 5G
Should I need to write something in AndroidManifest?
Ah. I should wrap Widget not all screen