rive_color_modifier 2.0.0
rive_color_modifier: ^2.0.0 copied to clipboard
An easy and straightforward way to modify the Color of specific Components within Rive Animations at runtime, while also maintaining their opacity throughout the animation.
[2.0.0] - Introduction of patterns to match any shape, fill, or stroke that matches a given pattern #
Breaking Changes #
- The
shapeName
andfillName
properties inRiveColorComponent
have been replaced byshapePattern
,fillPattern
, andstrokePattern
. This update allows developers to use regular expressions to match shapes, fills, or strokes based on their names. - Existing code using
shapeName
andfillName
will need to be updated to use the new pattern-based properties.
New Features #
- Added
shapePattern
,fillPattern
, andstrokePattern
properties to theRiveColorComponent
class. - These properties allow for more flexible matching using regular expressions.
RiveColorComponent(
shapePattern: '.*',
fillPattern: '.*primary',
strokePattern: '.*primary',
color: primaryColor,
),
- Then this component will match every fill or stroke that ends with "primary" in their names.
[1.0.6] - Update Rive version constraints to "^0.13.1" #
[1.0.5] - README.md updated #
- Package documentation improvement
[1.0.3] - Example added #
- You can find a simple demo in the "example" folder
[1.0.0] - Basic functionality #
-
RiveColorComponent
: Introduces a foundational class to manage and apply color properties within Rive animations. It allows for dynamic color manipulation directly within the Dart code, enhancing the flexibility and interactivity of Rive animations in Flutter apps. -
RiveColorModifier
: Provides a specialized class to modify and adjust color properties of Rive animations. It focuses on fine-tuned color alteration, enabling developers to implement detailed color transformations and effects on Rive objects. -
RiveCustomRenderObject
: Implements a custom render object for Rive animations, extending Flutter's RenderBox. This class is designed to offer a tailored rendering approach, accommodating specific or advanced rendering requirements for Rive animations. It allows for enhanced integration of Rive animations with Flutter's rendering engine, ensuring optimized performance and customization.