fairy_flutter_utils 0.0.1-dev
fairy_flutter_utils: ^0.0.1-dev copied to clipboard
Flutter package util工具类,包含日期时间,数字,定时器,字符串,集合,货币,正则表达式,集合,签名等工具的封装.
We analyzed this package 3 days ago, and awarded it 65 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description contains too many non-ASCII characters.
The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.
Failed to verify repository URL.
Repository has no matching pubspec.yaml with name: fairy_flutter_utils.
Please provide a valid repository URL in pubspec.yaml, such that:
repositorycan be cloned,- a clone of the repository contains a
pubspec.yaml, which:,- contains
name: fairy_flutter_utils, - contains a
versionproperty, and, - does not contain a
publish_toproperty.
- contains
5/5 points: Provide a valid README.md
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.
10/10 points: Use an OSI-approved license
Detected license: Apache-2.0.
10/10 points: 20% or more of the public API has dartdoc comments
131 out of 154 API elements (85.1 %) have documentation comments.
Some symbols that are missing documentation: fairy_flutter_utils, fairy_flutter_utils.EncryptUtil.EncryptUtil.new, fairy_flutter_utils.KString, fairy_flutter_utils.KString.KString.new, fairy_flutter_utils.KString.day.
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
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:72:51
╷
72 │ 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
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.
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.23.11, Flutter 3.41.4, Dart 3.11.1.
Check the analysis log for details.