I am getting an error when I add a row in column. I am getting following error:
I/flutter ( 6449): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═══════════════
This happens only when you are trying to define an infinite width and height for a Row, Column or Container that is a parent of the TextField that wants to use all the space.
To solve this, you should wrap your TextField with Flexible or Expanded.
Do this to solve the issues above and beyond.
Expanded(
child: txtFirstName,
),
Flexible(
child: txtLastName,
),
Full example
Column(
children: [
imgHeader,
lblSignUp,
txtEmail,
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Expanded(
child: txtFirstName,
),
Flexible(
child: txtLastName,
),
],
),
],
)