| Index: sky/sdk/lib/editing/editable_text.dart
|
| diff --git a/sky/sdk/lib/editing/editable_text.dart b/sky/sdk/lib/editing/editable_text.dart
|
| index 6bf9c8d44605027d30250c9ab0fa188548b635bf..d93e89ec2c4f340b5472eff3e4ec4e018c40b5b2 100644
|
| --- a/sky/sdk/lib/editing/editable_text.dart
|
| +++ b/sky/sdk/lib/editing/editable_text.dart
|
| @@ -29,6 +29,7 @@ class EditableText extends StatefulComponent {
|
| TextStyle style;
|
| Color cursorColor;
|
|
|
| + @override
|
| void syncFields(EditableText source) {
|
| value = source.value;
|
| focused = source.focused;
|
| @@ -51,6 +52,7 @@ class EditableText extends StatefulComponent {
|
| new Duration(milliseconds: _kCursorBlinkPeriod), _cursorTick);
|
| }
|
|
|
| + @override
|
| void didUnmount() {
|
| if (_cursorTimer != null)
|
| _stopCursorTimer();
|
| @@ -68,7 +70,7 @@ class EditableText extends StatefulComponent {
|
| return;
|
|
|
| Rect cursorRect = new Rect.fromLTWH(
|
| - _kCursorGap,
|
| + _kCursorGap,
|
| -_kCursorHeightOffset,
|
| _kCursorWidth,
|
| style.fontSize + 2 * _kCursorHeightOffset
|
| @@ -76,6 +78,7 @@ class EditableText extends StatefulComponent {
|
| canvas.drawRect(cursorRect, new Paint()..color = cursorColor);
|
| }
|
|
|
| + @override
|
| Widget build() {
|
| assert(style != null);
|
| assert(focused != null);
|
|
|