Commit e8a756c7 authored by Jason Simmons's avatar Jason Simmons

Merge pull request #1421 from jason-simmons/editable_text_fn3_expand_width

Make the fn3 EditableText expand to fill the width of its parent
parents f4afd0d9 34290812
......@@ -195,13 +195,16 @@ class EditableTextState extends State<EditableText> {
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
)
);
}
}
......
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