From fecba009eed9aeeaaee3fa070eccbf146f7f5419 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 9 Mar 2016 12:42:52 -0800 Subject: [PATCH] Improve InputValue#toString --- packages/flutter/lib/src/painting/text_editing.dart | 1 + packages/flutter/lib/src/widgets/editable.dart | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/painting/text_editing.dart b/packages/flutter/lib/src/painting/text_editing.dart index 2ffa601e72..e1c50dd354 100644 --- a/packages/flutter/lib/src/painting/text_editing.dart +++ b/packages/flutter/lib/src/painting/text_editing.dart @@ -66,6 +66,7 @@ class TextRange { end.hashCode ); + String toString() => 'TextRange(start: $start, end: $end)'; } /// A range of text that represents a selection. diff --git a/packages/flutter/lib/src/widgets/editable.dart b/packages/flutter/lib/src/widgets/editable.dart index 1968daeee4..84d5631f30 100644 --- a/packages/flutter/lib/src/widgets/editable.dart +++ b/packages/flutter/lib/src/widgets/editable.dart @@ -101,7 +101,7 @@ class InputValue { static const InputValue empty = const InputValue(); - String toString() => '$runtimeType(text: $text, selection: $selection, composing: $composing)'; + String toString() => '$runtimeType(text: \u2524$text\u251C, selection: $selection, composing: $composing)'; bool operator ==(dynamic other) { if (identical(this, other)) @@ -207,9 +207,8 @@ class RawInputLineState extends ScrollableState { void didUpdateConfig(RawInputLine oldConfig) { if (_keyboardClient.inputValue != config.value) { _keyboardClient.inputValue = config.value; - if (_isAttachedToKeyboard) { + if (_isAttachedToKeyboard) _keyboardHandle.setEditingState(_keyboardClient.editingState); - } } }