libmonet 2.0.0-dev.4 copy "libmonet: ^2.0.0-dev.4" to clipboard
libmonet: ^2.0.0-dev.4 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."
  • 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 in order to make SpecVersion values comparable.
  • Other minor breaking changes.
  • Refactored internal file structure.
  • Fixed errors in test runners.
  • Removed unfinished tools.

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
454
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

Documentation

API reference

License

MIT (license)

Dependencies

collection, meta

More

Packages that depend on libmonet