Commit 07ba3797 authored by Matt Perry's avatar Matt Perry Committed by GitHub

Fix bug where text input would remain underlined upon losing focused. (#5027)

BUG=https://github.com/flutter/flutter/issues/4904
parent 5e7e7b6e
...@@ -286,9 +286,11 @@ class RawInputLineState extends ScrollableState<RawInputLine> { ...@@ -286,9 +286,11 @@ class RawInputLineState extends ScrollableState<RawInputLine> {
..type = config.keyboardType); ..type = config.keyboardType);
_keyboardHandle.setEditingState(_keyboardClient.editingState); _keyboardHandle.setEditingState(_keyboardClient.editingState);
_keyboardHandle.show(); _keyboardHandle.show();
} else if (!focused && _isAttachedToKeyboard) { } else if (!focused) {
if (_isAttachedToKeyboard) {
_keyboardHandle.release(); _keyboardHandle.release();
_keyboardHandle = null; _keyboardHandle = null;
}
_keyboardClient.clearComposing(); _keyboardClient.clearComposing();
} }
} }
...@@ -424,7 +426,7 @@ class RawInputLineState extends ScrollableState<RawInputLine> { ...@@ -424,7 +426,7 @@ class RawInputLineState extends ScrollableState<RawInputLine> {
} }
return new _EditableLineWidget( return new _EditableLineWidget(
value: config.value, value: _keyboardClient.inputValue,
style: config.style, style: config.style,
cursorColor: config.cursorColor, cursorColor: config.cursorColor,
showCursor: _showCursor, showCursor: _showCursor,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment