flutter_commons 0.0.1 copy "flutter_commons: ^0.0.1" to clipboard
flutter_commons: ^0.0.1 copied to clipboard

Commons Flutter package can used for Flutter.

120/ 160
pub points
38
downloads

We analyzed this package 34 hours ago, and awarded it 120 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 50 to 180 characters to describe the package, what it does, and its target use case.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: AGPL-3.0.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

11 out of 30 API elements (36.7 %) have documentation comments.

Some symbols that are missing documentation: flutter_commons, flutter_commons.DeviceInfo, flutter_commons.DeviceInfo.DeviceInfo.new, flutter_commons.DeviceInfo.genUuid, flutter_commons.DeviceInfo.keyGuid.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Failed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:flutter_commons/flutter_commons.dart that imports:
  • package:flutter_commons/src/device.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus_linux/device_info_plus_linux.dart that declares support for platforms: Linux.
Package does not support platform `Linux`.

Because:

  • package:flutter_commons/flutter_commons.dart that imports:
  • package:flutter_commons/src/device.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus_windows/device_info_plus_windows.dart that declares support for platforms: Windows.
Package does not support platform `Web`.

Because:

  • package:flutter_commons/flutter_commons.dart that imports:
  • package:flutter_commons/src/device.dart that imports:
  • package:flustars/flustars.dart that imports:
  • package:flustars/src/directory_util.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:flutter_commons/flutter_commons.dart that imports:
  • package:flutter_commons/src/device.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus_windows/device_info_plus_windows.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:flutter_commons/flutter_commons.dart that imports:
  • package:flutter_commons/src/device.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus_windows/device_info_plus_windows.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:flutter_commons/flutter_commons.dart that imports:
  • package:flutter_commons/src/device.dart that imports:
  • package:device_info_plus/device_info_plus.dart that imports:
  • package:device_info_plus_windows/device_info_plus_windows.dart that declares support for platforms: Windows.

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:flutter_commons/flutter_commons.dart that imports:
  • package:flutter_commons/src/device.dart that imports:
  • package:flustars/flustars.dart that imports:
  • package:flustars/src/directory_util.dart that imports:
  • package:path_provider/path_provider.dart that imports:
  • package:path_provider_platform_interface/path_provider_platform_interface.dart that imports:
  • package:path_provider_platform_interface/src/method_channel_path_provider.dart that imports:
  • package:platform/platform.dart that imports:
  • package:platform/src/interface/local_platform.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.cn/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 9 issues. Showing the first 2:

INFO: Empty catch block.

lib/src/device.dart:44:28

   ╷
44 │       } on PlatformException {
   │ ┌────────────────────────────^
45 │ └     }
   ╵

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

INFO: Missing type annotation.

lib/src/encrypt.dart:9:7

  ╷
9 │   get _encrypter => (salt) {
  │       ^^^^^^^^^^
  ╵

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

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
common_utils ^2.0.2 2.1.0 2.1.0
device_info_plus ^2.0.1 2.2.0 12.2.0
encrypt >=4.0.0 <6.0.0 5.0.3 5.0.3
flustars ^2.0.1 2.0.1 2.0.1
flutter_udid ^2.0.0 2.1.1 4.0.0
logger ^1.0.0 1.4.0 2.6.2
uuid ^3.0.4 3.0.7 4.5.2
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
asn1lib - 1.6.5 1.6.5
characters - 1.4.0 1.4.1
clock - 1.1.2 1.1.2
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
decimal - 3.2.4 3.2.4
device_info_plus_linux - 2.1.1 5.0.0 Discontinued
device_info_plus_macos - 2.2.3 5.0.0 Discontinued
device_info_plus_platform_interface - 2.6.1 7.0.3
device_info_plus_web - 2.1.0 5.0.0 Discontinued
device_info_plus_windows - 2.1.1 6.0.0 Discontinued
ffi - 1.2.1 2.1.4
file - 6.1.4 7.0.1
intl - 0.20.2 0.20.2
js - 0.7.2 0.7.2 Discontinued
material_color_utilities - 0.11.1 0.13.0
meta - 1.16.0 1.17.0
path - 1.9.1 1.9.1
path_provider - 2.0.15 2.1.5
path_provider_android - 2.2.20 2.2.20
path_provider_foundation - 2.4.3 2.4.3
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.0.7 2.3.0
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
pointycastle - 3.9.1 4.0.0
rational - 2.2.3 2.2.3
shared_preferences - 2.5.3 2.5.3
shared_preferences_android - 2.4.15 2.4.15
shared_preferences_foundation - 2.5.5 2.5.5
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.1 2.4.1
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
sp_util - 2.0.3 2.0.3
synchronized - 3.4.0 3.4.0
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
web - 1.1.1 1.1.1
win32 - 2.6.1 5.15.0
xdg_directories - 1.1.0 1.1.0

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

Found 4 issues. Showing the first 2:

The constraint `^2.0.1` on device_info_plus does not support the stable version `3.0.0`.

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

The constraint `^2.0.0` on flutter_udid does not support the stable version `3.0.0`.

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.1, Flutter 3.35.7, Dart 3.9.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
120
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Commons Flutter package can used for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

common_utils, device_info_plus, encrypt, flustars, flutter, flutter_udid, logger, uuid

More

Packages that depend on flutter_commons