libmonet 2.0.0-dev.18
libmonet: ^2.0.0-dev.18 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.
2.0.0 #
-
Bumped minimum SDK version to Dart 3.12.
-
Ported from upstream Material Color Utilities:
- Added CMF Scheme in 2026 spec. (
19ad665) - Refactor DynamicScheme to accept a list of source colors. (
4578d0a) - Updated background for on-fixed colors in ColorSpec2026. (
91da30d) - Adjust chroma calculation in ColorSpec2025 for yellow hues at tone 99. (
1a34bd2) - Added support for energy color generation via the new
EnergyColorsutility. Implementation is experimental as it comes from an unreleased version of the upstream library.
- Added CMF Scheme in 2026 spec. (
-
Renamed
android_dynamic_colorslibrary toandroid_color_utilities. -
Fixed an upstream issue of
AndroidDynamicColors.clockSecondandAndroidDynamicColors.weatherTemphaving a medium contrast of70, when it should've been7. -
Ported from upstream Android source code:
- Added
surfaceEffect0,surfaceEffect1,surfaceEffect2,surfaceEffect3,surfaceEffect0Fallbackcolor roles representing translucent surfaces with background effects toAndroidDynamicColors. - Added
SchemeClockandSchemeClockVibrantto theandroid_color_utilitieslibrary. - Added
Cam16.getIntandCam16.getIntInViewingConditionsto thematerial_color_utilitieslibrary.
- Added
-
Massively refactored
DynamicScheme(including deviations from upstream):- Removed custom palette key colors support from
DynamicScheme. - Replaced
sourceColorHctwithsourceColorof typeTonalPaletteSourceColor. - Renamed
DynamicScheme.fromPalettesOrKeyColorstoDynamicScheme.withDefaults. - All
DynamicScheme.withDefaultsandScheme*constructor parameters are now optional (isDarkdefaults tofalseas permd.sys.colortoken defaults). - Implemented complex fallback logic for
isDark,platformandspecVersion. - Added
DynamicScheme.rawfor creating potentially logically impossible scheme configurations.
- Removed custom palette key colors support from
-
Aligning the library with Dart best practices:
- Renamed
TemperatureCache.getComplementtoTemperatureCache.complementand made it a getter. - Changed
Score.scorepositional parameters to be named instead. - Made
Hctimmutable to avoid issues with value equality in collections: removedhue,chromaandtonesetters and added a newcopyWithmethod. - Added
yearproperty toSpecVersionand implementedComparable<SpecVersion>in order to make spec versions orderable.
- Renamed
-
Added a default
libmonetlibrary which exports all members from the other libraries. -
Added generated example schemes in CSS and Figma formats.
-
Refactored internal file structure (breaks source code imports).
-
Other minor changes.
1.2.0 #
-
Inlined more utility functions.
-
Removed
MathUtils.signumin favor ofnum.sign. -
Addressed linter feedback.
-
Code style updates.
-
Upgraded dependencies.
1.1.2 #
- Made sure Flutter-specific directories get ignored when publishing the package.
1.1.1 #
- Deprecated
MathUtils.signumin favor ofnum.sign.
1.1.0 #
-
Added caching to
MaterialDynamicColorswhich prevents the class from being const-constructable. -
Removed redundant libraries which were partials of
material_color_utilities. -
Publicly exposed
ColorSpec2021andColorSpec2025classes. -
Introduced a new library
android_dynamic_colorswhich contains aAndroidDynamicColorsclass which is a port ofcom.android.systemui.monet.CustomDynamicColors. -
Fixed incorrect Dart class delegation by replacing it with plain inheritance in
ColorSpec2025. -
Refactored the library internally to improve code style and readability.
-
Updated
analysis_options.yamlto ensure correct lint rules are being used during development. -
Updated
.gitignoreto match other workspace packages.
1.0.0 #
- Initial version.