mirror of
https://github.com/hanskokx/arcane_helper_utils.git
synced 2026-05-14 02:19:09 +02:00
v1.1.3
- Removed color extension Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
This commit is contained in:
@@ -15,7 +15,6 @@ providing utility functions and extensions that simplify common tasks.
|
||||
class, making it easier to format dates and calculate differences.
|
||||
- **String Extensions**: Enhances the `String` class by adding new methods for
|
||||
common transformations and checks, including JWT parsing.
|
||||
- **Color Extensions**: Adds the ability to determine the luminance of a `Color`
|
||||
|
||||
## Getting Started
|
||||
|
||||
@@ -331,16 +330,6 @@ objects:
|
||||
Additionally, the `CommonString` class provides a quick shortcut to common
|
||||
strings, such as punctuation marks that are otherwise cumbersome to find or type.
|
||||
|
||||
### Color Examples
|
||||
|
||||
The following utilities have been added to enhance working with `Color` objects:
|
||||
|
||||
- `luminance`: Computes the luminance of a given color.
|
||||
|
||||
```dart
|
||||
final Color luminanceBasedColor = myColor.isDark ? Colors.white : Colors.black;
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are welcome! Feel free to fork the repository and submit pull
|
||||
|
||||
Reference in New Issue
Block a user