display_brightness_ios 1.0.0 copy "display_brightness_ios: ^1.0.0" to clipboard
display_brightness_ios: ^1.0.0 copied to clipboard

PlatformiOS

iOS implementation of the display_brightness plugin.

1.0.0 #

  • FEAT: setBrightness now applies reliably instead of fire-and-forget. A single UIScreen.brightness write 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. setBrightness now 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 .m previously 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 #

  • FEAT: migrates ios plugin to SPM and removes CocoaPods from example. (e9fcd1f8)
  • FEAT: refactors the plugin to use federated architecture. (7ffa3217)

0.1.0 #

  • The initial release