Skip to content

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

@mshenawy22

Description

@mshenawy22

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' 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions