diff --git a/packages/flutter/lib/src/widgets/editable.dart b/packages/flutter/lib/src/widgets/editable.dart index 00507112a1..9ce9d295ea 100644 --- a/packages/flutter/lib/src/widgets/editable.dart +++ b/packages/flutter/lib/src/widgets/editable.dart @@ -286,9 +286,11 @@ class RawInputLineState extends ScrollableState { ..type = config.keyboardType); _keyboardHandle.setEditingState(_keyboardClient.editingState); _keyboardHandle.show(); - } else if (!focused && _isAttachedToKeyboard) { - _keyboardHandle.release(); - _keyboardHandle = null; + } else if (!focused) { + if (_isAttachedToKeyboard) { + _keyboardHandle.release(); + _keyboardHandle = null; + } _keyboardClient.clearComposing(); } } @@ -424,7 +426,7 @@ class RawInputLineState extends ScrollableState { } return new _EditableLineWidget( - value: config.value, + value: _keyboardClient.inputValue, style: config.style, cursorColor: config.cursorColor, showCursor: _showCursor,