Port the remainder of the framework to AnimationController

There should be no more uses of Performance or AnimatedValue in the framework
or the examples.
This commit is contained in:
Adam Barth
2016-01-20 12:53:48 -08:00
parent aabd1ce457
commit e459e7124a
7 changed files with 78 additions and 63 deletions

View File

@@ -18,7 +18,7 @@ class PageSelectorDemo extends StatelessComponent {
builder: (BuildContext context, Widget child) {
Color background = selection.value == iconName ? _selectedColor.end : _selectedColor.begin;
if (selection.valueIsChanging) {
// Then the selection's performance is animating from previousValue to value.
// Then the selection's animation is animating from previousValue to value.
if (selection.value == iconName)
background = _selectedColor.evaluate(animation);
else if (selection.previousValue == iconName)