Skip to content

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

Closed

Description

@DanTup

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.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in commandsRelates to commands (usually invoked from the command Palette)
    on Feb 2, 2022
  2. added this to the v3.38.0 milestone on Feb 2, 2022
  3. modified the milestones: v3.38.0, v3.39.0 on Apr 4, 2022
  4. modified the milestones: v3.40.0, v3.42.0 on Apr 28, 2022
  5. AndrewSheetMetal commented on Aug 3, 2022

    @AndrewSheetMetal

    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
    
  6. DanTup commented on Aug 10, 2022

    @DanTup
    MemberAuthor

    @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.

  7. AndrewSheetMetal commented on Aug 10, 2022

    @AndrewSheetMetal

    Thanks @DanTup for the information!

  8. added a commit that references this issue on Sep 2, 2025
    322ae79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in commandsRelates to commands (usually invoked from the command Palette)is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions