I cloned a git repository into android studio. It is code written with the flutter framework. I try to get the dependencies using flutter pub get
. However I get an error:
Resolving dependencies...
The current Dart SDK version is 3.4.3.
Because universal_ui 0.0.8 doesn't support null safety and no versions of universal_ui match >0.0.8 <0.1.0, universal_ui ^0.0.8 is forbidden.
So, because sixam_mart depends on universal_ui ^0.0.8, version solving failed.
The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety
Process finished with exit code 1
So the error is triggered because universal_ui 0.0.8
doesn't support null safety.
I even changed the lower bound of sdk
in the pubspec.yaml file:
environment:
sdk: '>=2.12.0 <4.0.0'
But i still get the same error. I Any ideas? Any help is much appreciated. Happy coding :)