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
130/ 160
pub points
60%
popularity

We analyzed this package 6 days ago, and awarded it 130 pub points (of a possible 160):

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.

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/BeMacized/xiaomi_scale/issues 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 66 API elements (48.5 %) 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

failed
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.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

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 imports:
  • package:flutter_reactive_ble/src/reactive_ble.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

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
30 / 40trigger 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.28.0
uuid ^3.0.5 3.0.7 4.5.1
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.1
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
fixnum - 1.1.1 1.1.1
functional_data - 1.2.0 1.2.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.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.4.0 1.4.0
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 `^0.27.2` on rxdart does not support the stable version `0.28.0`.

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

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Flutter 3.24.5, Dart 3.5.4.

Check the analysis log for details.

11
likes
130
pub points
60%
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