Skip to content

flutter screenshot should not require being run from a Flutter project directory #115790

@jmagman

Description

@jmagman
$ cd $HOME # not a Flutter directory
$ flutter screenshot
No supported devices connected.
The following devices were found, but are not supported by this project:
Purple 14 (mobile) • 00008110-0009588C2651401E • ios            • iOS 16.1.1
20B101
macOS (desktop)    • macos                     • darwin-x64     • macOS 12.6.1
21G217 darwin-x64
Chrome (web)       • chrome                    • web-javascript • Google Chrome
107.0.5304.110
If you would like your app to run on ios or macos or web, consider running
`flutter create .` to generate projects for these platforms.

flutter screenshot seems to be checking the enabled devices for the project, but it would be good to be able to run that one from anywhere.

See also #35490

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    Status

    Future bugs/improvements

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions