libmonet 2.0.0-dev.6
libmonet: ^2.0.0-dev.6 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:
- 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).
- Removed custom palette key colors support from
- Added
yearproperty toSpecVersionand implementedComparable<SpecVersion>in order to make spec versions comparable. - Color generation algorithms from Android:
- Renamed
android_dynamic_colorslibrary toandroid_system_ui. - Added
SchemeClockandSchemeClockVibrantto theandroid_system_uilibrary.
- Renamed
- 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.