mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-05-19 22:36:51 +08:00
propagate parent input change to nested input
We have decided to add a new attribute to our code generator that will allow to overwrite the behavior of property setters for the c++ runtime. For the editor, the solution is more complex because we still need to reflect the nested artboard value in the inspector so users can follow changes both at the parent and the child level. Diffs= fee67f16d propagate parent input change to nested input (#6878) ff2c0cbf6 apply final update if it has not been applied before (#6930) f3739347c Get wasm sizes back down. (#6927) a0a40213f No simd canvas (#6926) e2328daeb More LTO tweaks (#6904) cae08a3c5 Add a @rive-app/webgl2 package that uses PLS (#6845) Co-authored-by: hernan <hernan@rive.app>
This commit is contained in:
@ -1 +1 @@
|
||||
f4ef0e301ea18efa2863b2bff5450d0b6dfa8f67
|
||||
fee67f16df7648b5c9bc100b6221c7ba5baca0af
|
||||
|
@ -7,4 +7,11 @@ class NestedBool extends NestedBoolBase {
|
||||
|
||||
@override
|
||||
void updateValue() => nestedStateMachine?.setInputValue(inputId, nestedValue);
|
||||
|
||||
@override
|
||||
set nestedValue(bool value) {
|
||||
super.nestedValue = value;
|
||||
|
||||
updateValue();
|
||||
}
|
||||
}
|
||||
|
@ -7,4 +7,11 @@ class NestedNumber extends NestedNumberBase {
|
||||
|
||||
@override
|
||||
void updateValue() => nestedStateMachine?.setInputValue(inputId, nestedValue);
|
||||
|
||||
@override
|
||||
set nestedValue(double value) {
|
||||
super.nestedValue = value;
|
||||
|
||||
updateValue();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user