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

Error: No named parameter with the name 'src'. #104

Open
jasminder opened this issue Sep 13, 2024 · 2 comments
Open

Error: No named parameter with the name 'src'. #104

jasminder opened this issue Sep 13, 2024 · 2 comments

Comments

@jasminder
Copy link

I am trying to create html image element using the following code:
final html.ImageElement imgElement = html.ImageElement(src: url);

And I am getting this error on iOS/Android:
Error: No named parameter with the name 'src'.

It is working fine on web as it should, but, for iOS, I will have to comment this out.

@iKK001
Copy link

iKK001 commented Oct 8, 2024

same here - any solution to this ??

final imageElement = html.ImageElement(src: url); does not work on Android or iOS

I tried to exclude it from any mobile compilation by:

if (kIsWeb) {
    final imageElement = html.ImageElement(src: url);
   // ..
}

But the compiler still crashes when compiling for mobile. Any solution to this ?

@iKK001
Copy link

iKK001 commented Oct 14, 2024

Any news ? I am pretty desperate with this - since my product depends on this library....

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

2 participants