universal_html icon indicating copy to clipboard operation
universal_html copied to clipboard

The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.

Open lexoops opened this issue 2 years ago • 5 comments

image image

Error (Xcode): ../../.pub-cache/hosted/pub.flutter-io.cn/universal_html-2.0.8/lib/src/html/dom/element_subclasses.dart:2711:30: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.

please help, on mac os, i can not build ios app.

lexoops avatar Jul 08 '23 09:07 lexoops

@lexoops see this https://github.com/dint-dev/universal_html/issues/76#issuecomment-1558621694

naseeem avatar Jul 09 '23 09:07 naseeem

Add this dependency in your pubspec.yaml 👇🏻 csslib: 0.17.0

dhruvil444 avatar Jul 17 '23 08:07 dhruvil444

Thank you @dhruvil444 your solution saved my day!

Haris2v avatar Aug 27 '23 03:08 Haris2v

Thank you @dhruvil444 , I have spent 5 hours before I found your solution

nishat-nasir avatar Sep 07 '23 06:09 nishat-nasir

Add this dependency in your pubspec.yaml 👇🏻 csslib: 0.17.0

Thanks you so much

rickynguyenc avatar Dec 14 '23 07:12 rickynguyenc