datetime_difference 1.0.3
datetime_difference: ^1.0.3 copied to clipboard
Calculates the difference between two dates.
We analyzed this package 5 days ago, and awarded it 120 pub points (of a possible 160):
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.
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: BSD-2-Clause.
10/10 points: 20% or more of the public API has dartdoc comments
10 out of 18 API elements (55.6 %) have documentation comments.
Some symbols that are missing documentation: flutter_date_difference, flutter_date_difference_helper, flutter_date_difference_helper.FlutterDateDifferenceHelper, flutter_date_difference_helper.FlutterDateDifferenceHelper.FlutterDateDifferenceHelper.new, mobile_locale.
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
These platforms are not supported:
Package not compatible with platform Android
Because:
package:datetime_difference/locale_providers/web_locale.dartthat imports:dart:html
Package not compatible with platform iOS
Because:
package:datetime_difference/locale_providers/web_locale.dartthat imports:dart:html
Package not compatible with platform Windows
Because:
package:datetime_difference/locale_providers/web_locale.dartthat imports:dart:html
Package not compatible with platform Linux
Because:
package:datetime_difference/locale_providers/web_locale.dartthat imports:dart:html
Package not compatible with platform macOS
Because:
package:datetime_difference/locale_providers/web_locale.dartthat imports:dart:html
Package not compatible with platform Web
Because:
package:datetime_difference/locale_providers/mobile_locale.dartthat imports:dart:io
40/50 points: code has no errors, warnings, lints, or formatting issues
INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead.
lib/locale_providers/web_locale.dart:2:1
╷
2 │ import 'dart:html' as html;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/locale_providers/web_locale.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
universal_io |
^2.2.2 |
2.3.1 | 2.3.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.0 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 |
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
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.8, Flutter 3.38.6, Dart 3.10.7.
Check the analysis log for details.