diff --git a/packages/flutter/lib/src/fn3/editable_text.dart b/packages/flutter/lib/src/fn3/editable_text.dart index d6a2caefcf..fd685b7feb 100644 --- a/packages/flutter/lib/src/fn3/editable_text.dart +++ b/packages/flutter/lib/src/fn3/editable_text.dart @@ -195,13 +195,16 @@ class EditableTextState extends State { else if (!config.focused && _cursorTimer != null) _stopCursorTimer(); - return new _EditableTextWidget( - value: config.value, - style: config.style, - cursorColor: config.cursorColor, - showCursor: _showCursor, - onContentSizeChanged: config.onContentSizeChanged, - scrollOffset: config.scrollOffset + return new SizedBox( + width: double.INFINITY, + child: new _EditableTextWidget( + value: config.value, + style: config.style, + cursorColor: config.cursorColor, + showCursor: _showCursor, + onContentSizeChanged: config.onContentSizeChanged, + scrollOffset: config.scrollOffset + ) ); } }