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

PlatformAndroid

Android implementation of the display_brightness plugin.

1.0.0 #

  • FIX: dispose() no longer leaves the platform singleton pointing at a released JNI object. Reusing the plugin after dispose() (e.g. reopening a screen that controls brightness) previously threw UseAfterReleaseError; the delegate is now recreated lazily on next use.
  • FIX: normalise the system brightness reading against the device's actual maximum (resolved from PowerManager.BRIGHTNESS_ON, falling back to 255) instead of assuming 255, so brightness is correct on OEMs (e.g. MIUI) that use a different range.
  • FEAT: graduate to stable 1.0.0.

0.1.1+1 #

  • FIX: move example project to packages/display_brightness. (978000a7)

0.1.1 #

  • FEAT: add dummy FlutterPlugin to ensure Kotlin support in FFI plugin for AGP 9.0+ compatibility. (162c2aaf)
  • FEAT: migrate to modern kotlin compiler options. (fd8bd283)
  • FEAT: refactors the plugin to use federated architecture. (7ffa3217)

0.1.0 #

  • The initial release