universal_html icon indicating copy to clipboard operation
universal_html copied to clipboard

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

Open jasminder opened this issue 1 year ago • 2 comments

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.

jasminder avatar Sep 13 '24 07:09 jasminder

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 avatar Oct 08 '24 16:10 iKK001

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

iKK001 avatar Oct 14 '24 09:10 iKK001