我正在构建一个 Flutter 应用程序,当我为 Android 构建应用程序时,该应用程序达到了标记,但是当我开始为 iOS 构建应用程序时,我开始面临“此库已禁用空安全功能”的错误
错误如下:
Users/himanshu/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety/lib/path.dart:100:4: Error: Null safety features are disabled for this library.
Try removing the package language version or setting the language version to 2.10 or higher.
Uri? _currentUriBase;
^
/Users/himanshu/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety/lib/path.dart:106:7: Error: Null safety features are disabled for this library.
Try removing the package language version or setting the language version to 2.10 or higher.
String? _current;
^
/Users/himanshu/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety/lib/path.dart:120:16: Error: Null safety features are disabled for this library.
Try removing the package language version …Run Code Online (Sandbox Code Playgroud)