我是 Flutter 的新手,在尝试使用 flutter_dotenv 包时遇到了一个我不明白的错误。
我添加了依赖项
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
flutter_dotenv: ^3.1.0
但是当我尝试导入时
import 'package:flutter_dotenv/flutter_dotenv.dart' as DotEnv;
它返回给我。
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
- package:flutter_dotenv
你能帮助我吗 ?谢谢