1、报错原因如下:
Could not build the precompiled application for the device.
Error (Xcode): ../../.pub-cache/hosted/pub.flutter-io.cn/universal_html-2.2.2/lib/src/html/dom/element_subclasses.dart:2752:30: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
2、解决方案 在pubspec.yaml添加
universal_html: ^2.2.4