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.
Asked
Active
Viewed 62 times
0
-
What is the type of your variable `email`? – My Car Oct 03 '22 at 07:35
-
Try posting code-snippet instead of code-image. More about [Why should I not upload images of code](https://meta.stackoverflow.com/q/285551/10157127) – Md. Yeasin Sheikh Oct 03 '22 at 19:21
2 Answers
0
Add your Text widget inside Expanded or Flexible widget, try below code:
Row(
children: [
Text('Email'),
SizedBox(
width: 10,
),
Expanded(
child: Text(
'putyouremailaddress@gmail.computyouremailaddress@gmail.com'),
),
],
),

Ravindra S. Patil
- 11,757
- 3
- 13
- 40
0
replace your Row with this one...
Row(
children: [
const Text("Email"),
Expanded(
child: Text(email.toString()),
),
],
),

krunal Gajera
- 148
- 4