rive_color_modifier 1.0.1
rive_color_modifier: ^1.0.1 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.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add rive_color_modifier
With Flutter:
$ flutter pub add rive_color_modifier
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
rive_color_modifier: ^1.0.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:rive_color_modifier/rive_color_modifier.dart';