flutter_qr_code_scanner_generator_sharing icon indicating copy to clipboard operation
flutter_qr_code_scanner_generator_sharing copied to clipboard

Build failed: A value of type 'Future<Image>' can't be assigned to a variable of type 'Image

Open mshenawy22 opened this issue 3 years ago • 1 comments

Build failed with the following error

../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/qr_flutter-1.1.6/lib/src/qr_painter.dart:101:25: Error: A value of type 'Future<Image>' can't be assigned to a variable of type 'Image'.

  • 'Future' is from 'dart:async'.
  • 'Image' is from 'dart:ui'. toPicture(size).toImage(size.toInt(), size.toInt()); ^

any clue?

mshenawy22 avatar Oct 07 '20 10:10 mshenawy22

Also had the same issue.. any thoughts? doesnt look like this repo is maintained??

Shah0786 avatar Oct 08 '20 11:10 Shah0786