SachinGanesh / screenshot

Flutter Screenshot Library
https://pub.dev/packages/screenshot
MIT License
327 stars 137 forks source link

The argument type 'Null Function(Uint8List)' can't be assigned to the parameter type 'FutureOr<dynamic> Function(Uint8List?)'. #172

Closed lucasjinreal closed 2 months ago

lucasjinreal commented 3 months ago

The argument type 'Null Function(Uint8List)' can't be assigned to the parameter type 'FutureOr Function(Uint8List?)'.

ritheshSalyan commented 3 months ago

Hi @lucasjinreal,

It looks like there is some type mismatch in your code. Please share some part of your code so that we can help you in resolving that.

aryan1107 commented 2 months ago

same issue here

Screenshot 2024-04-24 at 8 43 30 PM

update solved it using:

screenshotController.capture(delay: const Duration(milliseconds: 10)).then((Uint8List? image) async {