Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A value of type 'Future<Image>' can't be assigned to a variable of type 'Image'. #8

Closed
sebasval opened this issue Apr 1, 2019 · 4 comments

Comments

@sebasval
Copy link

sebasval commented Apr 1, 2019

I have this error when download the project
A value of type 'Future' can't be assigned to a variable of type 'Image'. in the method of class painter.

In the line 166 to 168:

Image toImage(){
return picture.toImage(width, height); // here!
}

@gbuela
Copy link

gbuela commented Apr 2, 2019

I'm getting the same :(

@kamalshree
Copy link

Same here unable to use the plugin below is the error message

 - 'Future' is from 'dart:async'.
 - 'Image' is from 'dart:ui'.
Try changing the type of the left hand side, or casting the right hand side to 'Image'.
    return picture.toImage(width, height);
                   ^

@freshteapot
Copy link

There is a fix for this in the pull request #5.

@EP-u-NW
Copy link
Collaborator

EP-u-NW commented Apr 20, 2020

This was already solved by #5.

@EP-u-NW EP-u-NW closed this as completed Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants