display_brightness_ios 1.0.0
display_brightness_ios: ^1.0.0 copied to clipboard
iOS implementation of the display_brightness plugin.
1.0.0 #
- FEAT:
setBrightnessnow applies reliably instead of fire-and-forget. A singleUIScreen.brightnesswrite is coalesced into a no-op when it equals the value the app last requested (so re-forcing 1.0 after the user manually lowered the screen did nothing), and is dropped if issued before the scene is foreground-active.setBrightnessnow ramps from the current value to the target across a few run-loop turns — a short sequence of distinct values, which are never coalesced and land even if the first turn is a moment too early. The ramp is bounded and self-terminating (no polling), superseded by any newer call, and targets the active window scene's screen. Brightness access is confined to the main thread. - FIX: ship the generated Objective-C header (
display_brightness_ios.h) with the package and import it locally. The generated.mpreviously imported the header from a machine-specific build temp path (/var/folders/.../T/...), so the plugin failed to build on any other machine with "file not found". - FEAT: graduate to stable 1.0.0.
0.1.1 #
0.1.0 #
- The initial release