flutter: ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
flutter: The following assertion was thrown during performLayout():
flutter: BoxConstraints forces an infinite width.
flutter: These invalid constraints were provided to RenderRepaintBoundary's layout() function by the
flutter: following function, which probably computed the invalid constraints in question:
flutter: _RenderDecoration._layout.layoutLineBox (package:flutter/src/material/input_decorator.dart:819:11)
flutter: The offending constraints were:
flutter: BoxConstraints(w=Infinity, 0.0<=h<=Infinity)
2.解决的办法是使用Expanded来包装TextFiled
new Row(children: <Widget>[new Expanded(child: TextField())],)