Skip to content

Select device category/type as flutter run subcommand #72365

@xster

Description

@xster

As an extension to -d, it would be nice to have some easy to remember, easy to type high level subcommands to flutter run to point to specific device categories when flutter running.

  • Running a naked flutter run is likely to bring up a slow target device selector to choose each time which adds friction.
  • Even if you're a hobbyist and don't have 10 phones connected to your machine, it's still likely going to be exacerbated by the fact that going forward, chrome and macos etc will be permanently connected devices in your flutter devices list.
  • Before running flutter run, you know what device type you want to target. You just likely don't remember what the device name/label is or its serial number.
  • flutter run -d <device type> is longer to type, and it often works, but sometimes don't. And when it doesn't occasionally, the loss of confidence makes you not use it.

In the list below

Multiple devices found:
Pixel 3 (mobile)   • 8AXX11BS6                                • android-arm64  • Android 11 (API 30)
iPhone (mobile)    • cdcd493527f1f25a0ac91106540cf58186f2b4f0 • ios            • iOS 14.2
iPhone 12 (mobile) • 9E56D63B-8F4D-4110-A2AF-7D8F9BF8E54C     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
macOS (desktop)    • macos                                    • darwin-x64     • Mac OS X 10.15.7 19H15 darwin-x64
Chrome (web)       • chrome                                   • web-javascript • Google Chrome 87.0.4280.88
[0]: Pixel 3 (8AXX11BS6)
[1]: iPhone (cdcd493527f1f25a0ac91106540cf58186f2b4f0)
[2]: iPhone 12 (9E56D63B-8F4D-4110-A2AF-7D8F9BF8E54C)
[3]: macOS (macos)
[4]: Chrome (chrome)

neither flutter run -d android, nor does flutter run -d simulator work despite there being only one of each being connected at a time.

  • Since Flutter is cross-platform, having more than 1 device of each type being connected may be less frequent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: annoyanceRepeatedly frustrating issues with non-experimental functionalityc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy