libmonet 2.0.0-dev.7 copy "libmonet: ^2.0.0-dev.7" to clipboard
libmonet: ^2.0.0-dev.7 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 versions to Dart 3.11 and Flutter 3.41 stable.
  • Ported upstream commits:
    • 19ad665: "Added CMF Scheme in 2026 spec."
    • 4578d0a: "Refactor DynamicScheme to accept a list of source colors."
    • 91da30d: "Updated background for on-fixed colors in ColorSpec2026."
  • Massively refactored DynamicScheme (including deviations from upstream):
    • Removed custom palette key colors support from DynamicScheme.
    • Replaced sourceColorHct with sourceColor of type TonalPaletteSourceColor.
    • Renamed DynamicScheme.fromPalettesOrKeyColors to DynamicScheme.withDefaults.
    • All DynamicScheme.withDefaults and Scheme* constructor parameters are now optional (isDark defaults to false as per md.sys.color token defaults).
  • Added year property to SpecVersion and implemented Comparable<SpecVersion> in order to make spec versions comparable.
  • Color generation algorithms from Android:
    • Renamed android_dynamic_colors library to android_system_ui.
    • Added SchemeClock and SchemeClockVibrant to the android_system_ui library.
  • Refactored internal file structure (breaks source code imports).
  • Other minor changes.

1.2.0 #

  • Inlined more utility functions.
  • Removed MathUtils.signum in favor of num.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.signum in favor of num.sign.

1.1.0 #

  • Added caching to MaterialDynamicColors which prevents the class from being const-constructable.
  • Removed redundant libraries which were partials of material_color_utilities.
  • Publicly exposed ColorSpec2021 and ColorSpec2025 classes.
  • Introduced a new library android_dynamic_colors which contains a AndroidDynamicColors class which is a port of com.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.yaml to ensure correct lint rules are being used during development.
  • Updated .gitignore to match other workspace packages.

1.0.0 #

  • Initial version.
1
likes
140
points
367
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues

Topics

#color #hct #material #android #utility

Documentation

API reference

License

MIT (license)

Dependencies

collection, meta

More

Packages that depend on libmonet