Merge pull request #1421 from jason-simmons/editable_text_fn3_expand_width
Make the fn3 EditableText expand to fill the width of its parent
This commit is contained in:
commit
e8a756c769
@ -195,13 +195,16 @@ class EditableTextState extends State<EditableText> {
|
|||||||
else if (!config.focused && _cursorTimer != null)
|
else if (!config.focused && _cursorTimer != null)
|
||||||
_stopCursorTimer();
|
_stopCursorTimer();
|
||||||
|
|
||||||
return new _EditableTextWidget(
|
return new SizedBox(
|
||||||
value: config.value,
|
width: double.INFINITY,
|
||||||
style: config.style,
|
child: new _EditableTextWidget(
|
||||||
cursorColor: config.cursorColor,
|
value: config.value,
|
||||||
showCursor: _showCursor,
|
style: config.style,
|
||||||
onContentSizeChanged: config.onContentSizeChanged,
|
cursorColor: config.cursorColor,
|
||||||
scrollOffset: config.scrollOffset
|
showCursor: _showCursor,
|
||||||
|
onContentSizeChanged: config.onContentSizeChanged,
|
||||||
|
scrollOffset: config.scrollOffset
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user