DEV Community

Cover image for TextField inside of Row causes layout exception: Unable to calculate size - fluttercorner.com
FlutterCorner
FlutterCorner

Posted on

TextField inside of Row causes layout exception: Unable to calculate size - fluttercorner.com

Hello Guys How are you all ? Hope You all Are fine. In todays tutorial we are going to solve TextField inside of Row causes layout exception: Unable to calculate size error in flutter.

I’m attempting to create a column that has 3 rows. First children is Row [Image] Second Children in Row [TextField] and Third Children is Row [Buttons]. When I run I get the following exception:

I/flutter ( 7674): BoxConstraints forces an infinite width.
I/flutter ( 7674): These invalid constraints were provided to RenderStack's layout() function by the following
I/flutter ( 7674): function, which probably computed the invalid constraints in question:
I/flutter ( 7674):   RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:256:13)
I/flutter ( 7674): The offending constraints were:
I/flutter ( 7674):   BoxConstraints(w=Infinity, 0.0<=h<=Infinity)
Enter fullscreen mode Exit fullscreen mode

Solution 1

TextField inside of Row causes layout exception: Unable to calculate size

Here is All Possible Solution added please visit TextField inside of Row causes layout exception: Unable to calculate size

Top comments (0)