Make the fn3 EditableText expand to fill the width of its parent
This commit is contained in:
parent
01f7c8460f
commit
3429081263
@ -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(
|
||||||
|
width: double.INFINITY,
|
||||||
|
child: new _EditableTextWidget(
|
||||||
value: config.value,
|
value: config.value,
|
||||||
style: config.style,
|
style: config.style,
|
||||||
cursorColor: config.cursorColor,
|
cursorColor: config.cursorColor,
|
||||||
showCursor: _showCursor,
|
showCursor: _showCursor,
|
||||||
onContentSizeChanged: config.onContentSizeChanged,
|
onContentSizeChanged: config.onContentSizeChanged,
|
||||||
scrollOffset: config.scrollOffset
|
scrollOffset: config.scrollOffset
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user