<p dir="auto">I have a textfield that has keyboard type multiline and maxLines: null. The text will wrap on any device (including my real one) while I run the code in debug mode, but only continues on the same line when I run it on release mode.<br>
<code class="notranslate">new TextField( decoration: new InputDecoration.collapsed( hintText: 'Blah blah blah...'), maxLines: null, keyboardType: TextInputType.multiline, controller: _storyDescriptionController, ),</code></p>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mehmetf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mehmetf">@mehmetf</a></p>
<p dir="auto">Turns out the effect is dependent on the widgets in the column.</p>
<p dir="auto">The following is consistent between --debug and --release:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    Column(
      children: [
        new TextFormField(maxLines: null),
        new TextFormField(maxLines: null),
      ],
    ),

    Column(
      children: [
        new TextFormField(maxLines: null),
      ],
    ),"><pre class="notranslate">    <span class="pl-c1">Column</span>(
      children<span class="pl-k">:</span> [
        <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>(maxLines<span class="pl-k">:</span> <span class="pl-c1">null</span>),
        <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>(maxLines<span class="pl-k">:</span> <span class="pl-c1">null</span>),
      ],
    ),

    <span class="pl-c1">Column</span>(
      children<span class="pl-k">:</span> [
        <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>(maxLines<span class="pl-k">:</span> <span class="pl-c1">null</span>),
      ],
    ),</pre></div>
<p dir="auto">The following produces different behavior in --debug than --release mode.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    Column(
      children: [
        new TextFormField(maxLines: null),
        new TextFormField(maxLines: 1),
      ],
    ),"><pre class="notranslate">    <span class="pl-c1">Column</span>(
      children<span class="pl-k">:</span> [
        <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>(maxLines<span class="pl-k">:</span> <span class="pl-c1">null</span>),
        <span class="pl-k">new</span> <span class="pl-c1">TextFormField</span>(maxLines<span class="pl-k">:</span> <span class="pl-c1">1</span>),
      ],
    ),</pre></div>