Closed HaardikBhagtani closed 1 year ago
can you send your code ?
Same happen to me while my capture button inside the "WidgetsToImage". I think this is happen inbetween widget repainting. So I wrap the capture call inside a delayed Future call.
Future.delayed(const Duration(milliseconds: 500), () async{
final bytes = await controller.capture();
}
Getting below error for this line -
Uint8List? bytes = await widget.controller.capture();