dint-dev / universal_html

Cross-platform 'dart:html'.
https://pub.dev/packages/universal_html
Apache License 2.0
201 stars 60 forks source link

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

Closed lexoops closed 4 months ago

lexoops commented 1 year ago
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.

naseeem commented 1 year ago

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

dhruvil444 commented 1 year ago

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

Haris2v commented 1 year ago

Thank you @dhruvil444 your solution saved my day!

nishat-nasir commented 1 year ago

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

rickynguyenc commented 9 months ago

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

Thanks you so much