|
|
[Effen] Add AnimatedComponent base class
This patch adds a base AnimatedComponent from which most components that animated should derive. It takes care of listening & unlistening from the animations during did(Un)mount as well as binding the animated value to a private field and scheduling the component for build.
Note that this patch removes the did(Un)mount overridable methods from Component and replaces them with a callback mechanism which is less brittle.
BUG=
R=abarth@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/465402ea49933d769293b3f657d90219d1ef3c24
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+109 lines, -90 lines) |
Patch |
 |
M |
sky/framework/animation/animated_value.dart
|
View
|
1
2
|
2 chunks |
+4 lines, -26 lines |
0 comments
|
Download
|
 |
A |
sky/framework/components/animated_component.dart
|
View
|
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sky/framework/components/drawer.dart
|
View
|
|
4 chunks |
+7 lines, -12 lines |
0 comments
|
Download
|
 |
M |
sky/framework/components/fixed_height_scrollable.dart
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sky/framework/components/ink_well.dart
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sky/framework/components/input.dart
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sky/framework/components/popup_menu.dart
|
View
|
|
5 chunks |
+11 lines, -14 lines |
0 comments
|
Download
|
 |
M |
sky/framework/components/popup_menu_item.dart
|
View
|
|
1 chunk |
+5 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sky/framework/components/scrollable.dart
|
View
|
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sky/framework/editing/editable_text.dart
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sky/framework/fn.dart
|
View
|
|
3 chunks |
+28 lines, -4 lines |
0 comments
|
Download
|
Total messages: 5 (1 generated)
|