Skip to content

bug: Monitor power cycling (flickering) on dual-monitor setup with flet-desktop 0.80.2 #8

@FeodorFitsner

Description

@FeodorFitsner

Duplicate Check

Describe the bug

Describe the bug Running a Flet script using flet-desktop==0.80.2 causes my monitors to repeatedly turn off and on (power cycling). This issue specifically occurs on this version and is resolved by downgrading to a previous version.

Environment

OS: Windows (or mention your OS)

Flet Version: 0.80.2 (Problematic) / 0.28.3 (Working)

Hardware: Dual Monitor Setup (Samsung Odyssey)

Python Version: (e.g., 3.12.x)

To Reproduce

Create a virtual environment with flet==0.80.2 and flet-desktop==0.80.2.

Run any basic Flet desktop script (even a simple "Hello World").

Observe the monitors turning off and on immediately.

Observed Behavior When the script is executed in the venv with version 0.80.2, both monitors (Samsung Odyssey) keep turning off and on. I spent a full day troubleshooting this and confirmed it is a version-specific regression.

Expected Behavior The Flet window should open normally without affecting the monitor's power state or display stability.

Additional Context

I have two virtual environments:

Env A: Flet 0.28.3 (Works perfectly)

Env B: Flet 0.80.2 (Causes the bug)

The issue is definitely narrowed down to flet-desktop==0.80.2. Downgrading specifically this package to 0.28.3 fixes the issue immediately.

I'm a big fan of Flutter and Flet. Hope this helps in improving the framework!

Code sample

Code
[Paste your code here]

To reproduce

  1. install python ver 3.12.8
  2. uv init
  3. uv pip install flet (automatically installed 0.80.2)
  4. just import flet and just add one iconbutton
  5. test run

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

windows

Flet version

0.80.2

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions