在维护老项目时 , 很容易遇到依赖冲突的问题 , 需要适当调整下依赖版本

flutter pub deps

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Dart SDK 2.9.0-20.0.dev.flutter-c190fc3a31
Flutter SDK 1.20.0-3.0.pre.130
FlutterDemo 1.0.0
|-- connectivity 0.4.9
| |-- connectivity_for_web 0.3.0
| | |-- connectivity_platform_interface...
| | |-- flutter...
| | |-- flutter_web_plugins...
| | '-- js 0.6.2
| |-- connectivity_macos 0.1.0+3
| | '-- flutter...
| |-- connectivity_platform_interface 1.0.6
| | |-- flutter...
| | |-- meta...
| | '-- plugin_platform_interface 1.0.2
| | '-- meta...
| |-- flutter...
| '-- meta...
|-- cupertino_icons 0.1.3
|-- decimal 0.3.5
| '-- rational 0.3.8


强制覆盖版本

1
2
3
dependency_overrides:
path_provider: ^1.6.22