flutter / flutter/flutter

[desktop] performing a hot reload should focus on the app

Open
#160,387 8 comments 0 reactions 0 assignees View on GitHub
a: desktop c: proposal P3 team-tool triaged-tool
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

## Observed result
1) Launch a macos flutter app from the terminal
1) Change the code
1) go to the terminal and perform a hot reload
1) Notice now that you have to find the app and bring it to focus to see the results with something like alt+tab.

## Expected result
I'd expect that performing a hot reload would bring the app into focus when performing a hot reload.

## Proposal
Focusing on the app should be the default behavior for the flutter tool when developing desktop apps. We can add a flag `--no-auto-focus` to override that behavior in case someone ever doesn't like it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.