飞镖 | Flutter Package:如何更新 Package 不允许我的开发取得进展?

Dart | Flutter Package: How to update a Packge Not allowing my development to make progress?

以下包尚未更新: https://pub.dartlang.org/packages/tts 我遇到了同样的错误。 我有什么办法可以更新或解决这个问题以继续 https://pub.dartlang.org/packages/tts#-analysis-tab-

Running flutter packages pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.1.0-dev.1.0.flutter-69fce633b7.

Because tts requires SDK version >=1.8.0 <=2.0.0, version solving failed.

将此添加到 pubspec.yaml

dependency_overrides:
  tts: ^1.0.1

直到 tts 更新为支持 Dart 2 final。