Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support quickly adding multiple packages with **Dart: Add Dependency** #3811

Closed
DanTup opened this issue Feb 2, 2022 · 3 comments
Closed
Labels
in commands Relates to commands (usually invoked from the command Palette) is enhancement
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented Feb 2, 2022

Now that dart-lang/pub#3273 is done, we could allow the package input box to take a comma separated list to quickly add multiple packages in one step rather than waiting for repeated pub add calls.

@DanTup DanTup added is enhancement in commands Relates to commands (usually invoked from the command Palette) labels Feb 2, 2022
@DanTup DanTup added this to the v3.38.0 milestone Feb 2, 2022
@DanTup DanTup modified the milestones: v3.38.0, v3.39.0 Apr 4, 2022
@DanTup DanTup modified the milestones: v3.40.0, v3.42.0 Apr 28, 2022
@DanTup DanTup closed this as completed in 322ae79 May 25, 2022
@AndrewSheetMetal
Copy link

I just get suggestions for the first package and not for the following:
image
And if I try to add multiple packages I get this error:

flutter pub add fl_chart sqflite
Takes only a single argument.

My Dart Code Version is v.3.46.0.

Flutter Doctor -v

flutter doctor -v
[✓] Flutter (Channel unknown, 2.10.5, on macOS 12.3.1 21E258 darwin-x64, locale de-DE)
    • Flutter version 2.10.5 at /Users/xyz/flutter
    • Upstream repository unknown
    • Framework revision 5464c5bac7 (4 months ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
    • Android SDK at /Users/xyz/Library/Android/sdk
    • Platform android-32, build-tools 32.0.0-rc1
    • ANDROID_HOME = /Users/xyz/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.69.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] VS Code (version 1.55.2)
    • VS Code at /Users/xyz/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.79

[✓] HTTP Host Availability
    • All required HTTP hosts are available

@DanTup
Copy link
Member Author

DanTup commented Aug 10, 2022

@AndrewSheetMetal this feature is only enabled when using Dart SDKs >= 2.17.0 because it requires changes in pub to support this. The version of Flutter you're using only includes Dart 2.16.2. If you upgrade to the latest version of Flutter, it should start working.

@AndrewSheetMetal
Copy link

Thanks @DanTup for the information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in commands Relates to commands (usually invoked from the command Palette) is enhancement
Projects
None yet
Development

No branches or pull requests

2 participants