Home > other >  RenderFlex overflowed email.toString() - Flutter
RenderFlex overflowed email.toString() - Flutter

Time:10-03

Whenever I am writing Text(email.toString()), it gives the error of RenderFlex overflowed, please help me how to fix it. I am using SharedPreferences.

Before writing Text(email.toString()) - it works fine

When writing Text(email.toString() - it gives error of RenderFlex overflowed

CodePudding user response:

Add your Text widget inside image

CodePudding user response:

replace your Row with this one...

Row(
  children: [
    const Text("Email"),
    Expanded(
      child: Text(email.toString()),
    ),
  ],
),
  • Related