xiaomi_scale 2.2.1 copy "xiaomi_scale: ^2.2.1" to clipboard
xiaomi_scale: ^2.2.1 copied to clipboard

A Flutter plugin for taking measurements from Bluetooth Xiaomi weight scales

11
likes
110/ 140
pub points
67%
popularity

We analyzed this package 5 days ago, and awarded it 110 pub points (of a possible 140):

partial
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

Homepage URL doesn't exist.

At the time of the analysis https://bemacized.net/ was unreachable. Make sure that the website is reachable via HEAD requests.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

32 out of 69 API elements (46.4 %) have documentation comments.

Some symbols that are missing documentation: xiaomi_scale, xiaomi_scale.MiScale, xiaomi_scale.MiScale.scanForDevices, xiaomi_scale.MiScaleBodyData, xiaomi_scale.MiScaleBodyData.MiScaleBodyData.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:xiaomi_scale/xiaomi_scale.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device_v2.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device.dart that imports:
  • package:flutter_reactive_ble/flutter_reactive_ble.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:xiaomi_scale/xiaomi_scale.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device_v2.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device.dart that imports:
  • package:flutter_reactive_ble/flutter_reactive_ble.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:xiaomi_scale/xiaomi_scale.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device_v2.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device.dart that imports:
  • package:flutter_reactive_ble/flutter_reactive_ble.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:xiaomi_scale/xiaomi_scale.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device_v2.dart that imports:
  • package:xiaomi_scale/src/model/device/mi_scale_device.dart that imports:
  • package:flutter_reactive_ble/flutter_reactive_ble.dart that declares support for platforms: Android, iOS.
failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

WARNING: Dead code.

lib/src/mi_scale.dart:60:9

   ╷
60 │         cleanUpSubscription?.cancel();
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/mi_scale.dart

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
flutter_reactive_ble ^5.0.1 5.3.1 5.3.1
rxdart ^0.27.2 0.27.7 0.27.7
uuid ^3.0.5 3.0.7 4.4.0
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
fixnum - 1.1.0 1.1.0
functional_data - 1.2.0 1.2.0
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
plugin_platform_interface - 2.1.8 2.1.8
protobuf - 2.1.0 3.1.0
reactive_ble_mobile - 5.3.1 5.3.1
reactive_ble_platform_interface - 5.3.1 5.3.1
sky_engine - 0.0.99 0.0.99
typed_data - 1.3.2 1.3.2
vector_math - 2.1.4 2.1.4

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^3.0.5` on uuid does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions uuid to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.2, Flutter 3.19.5, Dart 3.3.3.

Check the analysis log for details.

11
likes
110
pub points
67%
popularity

Publisher

unverified uploader

A Flutter plugin for taking measurements from Bluetooth Xiaomi weight scales

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_reactive_ble, rxdart, uuid

More

Packages that depend on xiaomi_scale