Feichtmeier · GitHub

Describe the bug
When I run flutter apps with the theme and darkTheme properties set from within code, the launched application does not follow the linux desktop dark theme and the android emulators system theme.

To Reproduce
Steps to reproduce the behavior:
Create a new flutter application
Change the theme property to a light theme and the darkTheme property to a dark theme. Switch your system theme to a dark theme in Android or Linux GNOME desktop

Expected behavior
The flutter app follows the system theme "brightness" and switch from dark to light

Screenshots
From within vscode:
no
From within vscode with the android emulator:
Peek_2021-07-02_00-05

From the terminal:
ya
From intellij:
yayaya
From intellij with android as the target:
int

Versions (please complete the following information):

  • VS Code version: 1.57.1
  • Dart extension version: v3.24.0
  • Dart/Flutter SDK version: Flutter version 2.3.0-17.0.pre.622, but this happens with all channels (stable, dev, beta, master)

Additional information: this worked perfectly fine until some days ago

Edit: vscode snap or .deb - same behaviour :(

Read the original on github.com ↗