libmonet 2.0.0-dev.22
libmonet: ^2.0.0-dev.22 copied to clipboard
Algorithms and utilities that power the Material Design 3 (M3) color system, including choosing theme colors from images and creating tones of colors; all in a new color space.
We analyzed this package 34 hours ago, and awarded it 150 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
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: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
174 out of 765 API elements (22.7 %) have documentation comments.
Some symbols that are missing documentation: libmonet, libmonet.AndroidDynamicColors, libmonet.AndroidDynamicColors.AndroidDynamicColors.new, libmonet.AndroidDynamicColors.onShadeActive, libmonet.AndroidDynamicColors.onShadeActiveVariant.
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
WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 22 issues. Showing the first 2:
INFO: The diagnostic 'recursive_getters' isn't produced in this file so it doesn't need to be ignored.
lib/src/android_color_utilities/android_dynamic_colors.dart:1:21
╷
1 │ // ignore_for_file: recursive_getters
│ ^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/android_color_utilities/android_dynamic_colors.dart
INFO: Unnecessary use of a block function body.
lib/src/material_color_utilities/dynamiccolor/color_spec_2025.dart:563:31
╷
563 │ DynamicColor get primaryDim {
│ ┌───────────────────────────────^
564 │ │ return DynamicColor(
565 │ │ name: "primary_dim",
566 │ │ palette: (scheme) => scheme.primaryPalette,
567 │ │ tone: (scheme) {
568 │ │ if (scheme.variant == .neutral) {
569 │ │ return 85.0;
570 │ │ } else if (scheme.variant == .tonalSpot) {
571 │ │ return _tMaxC(scheme.primaryPalette, 0, 90);
572 │ │ } else {
573 │ │ return _tMaxC(scheme.primaryPalette);
574 │ │ }
575 │ │ },
576 │ │ isBackground: true,
577 │ │ background: (_) => surfaceContainerHigh,
578 │ │ contrastCurve: (_) => _getContrastCurve(4.5),
579 │ │ toneDeltaPair: (_) => ToneDeltaPair(
│ └─────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/material_color_utilities/dynamiccolor/color_spec_2025.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
^1.19.1 |
1.19.1 | 1.19.1 | |
meta |
^1.19.0 |
1.19.0 | 1.19.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.19, Dart 3.13.1.
Check the analysis log for details.