pubspec-assist
pubspec-assist copied to clipboard
Incorrect (and harmful) versions installed
pubspec-assist should consider the Flutter SDK constraints.
For instance, if you request flutter_crashlytics
package, it will add version 1.0.0
, but this version is beta:
Right now, pubspac-assist is pretty useless, because we can't use the versions it adds (we need to check every package on the version page and check if it is beta or stable and adjust the version manually to the latest stable version available, defeating the whole purpose of this plugin) =\
I have a demo of this working but I haven't tested it out thoroughly and there aren't reliable methods of getting the Dart SDK version. I totally agree that this needs to be in the extension, at least as an option.
I have a demo of this working but I haven't tested it out thoroughly and there aren't reliable methods of getting the Dart SDK version. I totally agree that this needs to be in the extension, at least as an option.
Flutter will give you the Dart current version (if you parse its output):
Not ideal, but better than nothing (also, dart -v
have the same output, but the user can have the Dart language compiler installed as well, which is different than that used by Flutter)
> flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.19042.804], locale pt-BR)
• Flutter version 1.22.6 at C:\flutter
• Framework revision 9b2d32b605 (6 weeks ago), 2021-01-22 14:36:39 -0800
• Engine revision 2f0af37152
• Dart version 2.10.5
...