From 342908126302f6a8fcad1f96a26244f769a7003a Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 30 Sep 2015 15:40:37 -0700 Subject: [PATCH] Make the fn3 EditableText expand to fill the width of its parent --- packages/flutter/lib/src/fn3/editable_text.dart | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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 + ) ); } }