color_system 0.0.6
color_system: ^0.0.6 copied to clipboard
This plugin simplifies hex color handling, making it effortless to customize visual elements in your application with precision and ease.
0.0.6 #
Change Log for Version 6 #
Overview #
In Version 3 of the color_system plugin, we have introduced several new features, enhancements, and bug fixes to improve the handling of hex colors in your Flutter application. This update aims to provide a more seamless and efficient experience when working with colors.
Changes #
-
New Feature - Color Conversion: We have added a new utility to the
ColorServiceclass that allows you to easily convert color values between different formats, such as RGB, HEX, and HSL. Now, you can effortlessly switch between these color representations, making color manipulation more convenient. -
Enhancement - Color Validation: We have improved the color validation mechanism in the
ColorServiceclass. Now, when you pass a color value to theisValidColormethod, it will not only check for valid HEX values but also validate RGB and HSL color formats. This enhancement ensures that you receive accurate validation results for a wider range of color inputs. -
New Inbuilt Colors: Version 3 introduces a set of new inbuilt colors in the
InbuiltColorsclass. You can now access additional colors likeemerald,plum,amber, and more. These colors are carefully selected to complement existing inbuilt colors and provide you with more options to enhance your app's visual appeal. -
Bug Fixes and Performance Improvements: We have addressed various reported issues and made performance optimizations to ensure the smooth functioning of the plugin. The update addresses problems related to color calculations, memory usage, and UI rendering, resulting in an overall improved user experience.
Migration Guide #
If you are upgrading to Version 3 from a previous version, please note the following:
- The method signature for color conversion in the
ColorServiceclass has changed to support additional color formats. Update your code to use the new conversion methods accordingly. - Check your color validation logic, especially if you were only validating HEX colors in the previous version. The
isValidColormethod now handles RGB and HSL formats as well.
Upgrading the Plugin #
To upgrade to Version 3 of the color_system plugin, simply update your pubspec.yaml file with the new version:
dependencies:
color_system: <VERSION>
Then run flutter pub get to fetch the latest version.
Conclusion #
With Version 3, the color_system plugin becomes more powerful and flexible, offering additional color conversion options, new inbuilt colors, and improved validation. We hope this update streamlines your color handling tasks and enriches the visual experience of your Flutter application.
If you encounter any issues or have suggestions for further improvements, please don't hesitate to open an issue on our GitHub repository.
Thank you for using the color_system plugin, and we look forward to providing more exciting features in future releases!