battery_plus_watchos 0.1.1 copy "battery_plus_watchos: ^0.1.1" to clipboard
battery_plus_watchos: ^0.1.1 copied to clipboard

watchOS implementation of the battery_plus plugin, reporting battery level, charging state, and low-power mode from WKInterfaceDevice via dart:ffi.

0.1.1 #

  • README: the install snippet names battery_plus: ^7.1.1 and this version, and says to add this package alongside battery_plus.
  • pubspec.yaml: repository points at this package's folder in the plugins repo.
  • Comments now say what keeps the FFI exports in the app: the CLI force-loads the plugin archive, each export is used with default visibility, and the CLI keeps global symbols through the App Store strip. ffiSymbols lists the exports.
  • README: a "Not supported on watchOS" table; PORTING_REPORT: an "Interface coverage" list of every member of battery_plus_platform_interface 2.0.1, audited by hand.
  • Example: pubspec.yaml names battery_plus: ^7.1.1 instead of any.
  • Example: the runner sets FlutterWatchOSContentScale to 0.4, so the phone example no longer overflows the watch screen (by 122 px on a 49 mm Simulator). A widget test lays it out at that scale on every watch screen size, and the README says why.

0.1.0 #

  • First working release. FFI implementation over WKInterfaceDevice (level, state) and NSProcessInfo (Low Power Mode); poll-based onBatteryStateChanged.

0.0.1 #

  • Initial watchOS scaffolding generated by flutter-watchos plugin port from battery_plus.
0
likes
130
points
39
downloads

Documentation

API reference

Publisher

verified publisherflutterwatch.dev

Weekly Downloads

watchOS implementation of the battery_plus plugin, reporting battery level, charging state, and low-power mode from WKInterfaceDevice via dart:ffi.

Topics

#watchos #ffi #battery

License

BSD-3-Clause (license)

Dependencies

battery_plus_platform_interface, flutter

More

Packages that depend on battery_plus_watchos

Packages that implement battery_plus_watchos