PlatformBrightnessChangeEvent

**Category:** Event

**Inheritance:** Inherits from flet.Event.

**Description:** This event is triggered when the platform's screen brightness changes.

Properties

  • **brightness**: flet.Brightness
  • * Type: Enum (flet.Brightness) * Description: Represents the current brightness level of the platform. Possible values are Brightness.LIGHT and Brightness.DARK.

    **Platform Support:** All platforms where Flet is supported.

    **Usage:** This event can be used to react to changes in the device's screen brightness, for example, to adjust the app's theme or UI elements accordingly.