screenshot icon indicating copy to clipboard operation
screenshot copied to clipboard

sometime the capture method returns a null Uint8List

Open flypigz opened this issue 3 years ago • 3 comments

_screenshotController .capture(pixelRatio: 1, delay: const Duration(milliseconds: 20)) .then((Uint8List? image) async { if (image != null) { ...... } else { assert(false); // unexpected !! } }

flypigz avatar Oct 24 '21 03:10 flypigz

              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?

shinriyo avatar Dec 11 '21 14:12 shinriyo

Ah. I should wrap Widget not all screen

shinriyo avatar Dec 11 '21 14:12 shinriyo