fairy_flutter_package_util 0.0.3-dev copy "fairy_flutter_package_util: ^0.0.3-dev" to clipboard
fairy_flutter_package_util: ^0.0.3-dev copied to clipboard

discontinued

Flutter package util.

50/ 160
pub points
29
downloads

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

Failed report section
Follow Dart file conventions
10 / 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.

Failed check 0/5 points: Provide a valid README.md

`README.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

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

Detected license: Apache-2.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

130 out of 143 API elements (90.9 %) have documentation comments.

Some symbols that are missing documentation: fairy_flutter_package_util, fairy_flutter_package_util.EncryptUtil.EncryptUtil.new, fairy_flutter_package_util.ListUtil.ListUtil.new, fairy_flutter_package_util.MoneyUtil.DOLLAR, fairy_flutter_package_util.MoneyUtil.MoneyUtil.new.

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
0 / 20trigger folding of the section

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

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 15 issues. Showing the first 2:

ERROR: The method 'toInt' isn't defined for the type 'Decimal'.

lib/src/money_util.dart:70:51

   ╷
70 │     return NumUtil.multiplyDecStr(yuanStr, '100').toInt();
   │                                                   ^^^^^
   ╵

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

ERROR: A value of type 'Rational' can't be returned from the method 'divideDecStr' because it has a return type of 'Decimal'.

lib/src/num_util.dart:232:12

    ╷
232 │     return Decimal.parse(a) / Decimal.parse(b);
    │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/num_util.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
convert >=3.0.0 <5.0.0 3.1.2 3.1.2
crypto >=3.0.0 <5.0.0 3.0.7 3.0.7
decimal >=1.0.0 <3.0.0 2.3.3 3.2.4
Transitive dependencies
Package Constraint Compatible Latest Notes
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
material_color_utilities - 0.13.0 0.13.0
meta - 1.17.0 1.18.2
rational - 2.2.3 2.2.3
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.3.0

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

The constraint `>=1.0.0 <3.0.0` on decimal does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions decimal 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.12, Flutter 3.41.4, Dart 3.11.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
50
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter package util.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

convert, crypto, decimal, flutter

More

Packages that depend on fairy_flutter_package_util