From f7dac6169abc1949ef321b3a56a725120fc4b9e8 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Sun, 27 Mar 2016 00:52:40 -0700 Subject: [PATCH] Improve _AnimatedEvaluation.toString ...and fix a typo in a setState assert message. --- packages/flutter/lib/src/animation/tween.dart | 2 +- packages/flutter/lib/src/widgets/framework.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/animation/tween.dart b/packages/flutter/lib/src/animation/tween.dart index 3606528844..4221e84bb8 100644 --- a/packages/flutter/lib/src/animation/tween.dart +++ b/packages/flutter/lib/src/animation/tween.dart @@ -43,7 +43,7 @@ class _AnimatedEvaluation extends Animation with AnimationWithParentMixin< @override String toString() { - return '$parent\u27A9$_evaluatable'; + return '$parent\u27A9$_evaluatable\u27A9$value'; } @override diff --git a/packages/flutter/lib/src/widgets/framework.dart b/packages/flutter/lib/src/widgets/framework.dart index 37d88fe53d..dd1295a426 100644 --- a/packages/flutter/lib/src/widgets/framework.dart +++ b/packages/flutter/lib/src/widgets/framework.dart @@ -384,7 +384,7 @@ abstract class State { assert(() { if (_debugLifecycleState == _StateLifecycle.defunct) { throw new FlutterError( - 'setState() called after dipose(): $this\n' + 'setState() called after dispose(): $this\n' 'This error happens if you call setState() on State object for a widget that\n' 'no longer appears in the widget tree (e.g., whose parent widget no longer\n' 'includes the widget in its build). This error can occur when code calls\n'