fairy_flutter_utils 0.0.1-dev fairy_flutter_utils: ^0.0.1-dev copied to clipboard
Flutter package util工具类,包含日期时间,数字,定时器,字符串,集合,货币,正则表达式,集合,签名等工具的封装.
We analyzed this package 2 days ago, and awarded it 75 pub points (of a possible 140):
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.
Please provide a valid repository
URL in pubspec.yaml
, such that:
repository
can be cloned,- a clone of the repository contains a
pubspec.yaml
, which:,- contains
name: fairy_flutter_utils
, - contains a
version
property, and, - does not contain a
publish_to
property.
- contains
Repository has no matching pubspec.yaml
with name: fairy_flutter_utils
.
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 148 API elements (88.5 %) have documentation comments.
Some symbols that are missing documentation: fairy_flutter_utils
, fairy_flutter_utils.KString
, fairy_flutter_utils.KString.KString
, fairy_flutter_utils.KString.day
, fairy_flutter_utils.KString.hour
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Android
- ✓ iOS
- ✓ Windows
- ✓ Linux
- ✓ macOS
- ✓ Web
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 14 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
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
convert |
>=3.0.0 <5.0.0 |
3.1.1 | 3.1.1 |
crypto |
>=3.0.0 <5.0.0 |
3.0.3 | 3.0.3 |
decimal |
>=1.0.0 <3.0.0 |
2.3.3 | 2.3.3 |
flutter |
flutter |
0.0.0 | 0.0.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
characters |
- | 1.3.0 | 1.3.0 |
collection |
- | 1.18.0 | 1.18.0 |
material_color_utilities |
- | 0.8.0 | 0.11.1 |
meta |
- | 1.11.0 | 1.14.0 |
rational |
- | 2.2.2 | 2.2.2 |
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
.
10/10 points: Package supports latest stable Dart and Flutter SDKs
Analyzed with Pana 0.22.3
, Flutter 3.19.6
, Dart 3.3.4
.
Check the analysis log for details.