Reputation: 93
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.
Upvotes: 0
Views: 73
Reputation: 162
replace your Row with this one...
Row(
children: [
const Text("Email"),
Expanded(
child: Text(email.toString()),
),
],
),
Upvotes: 0
Reputation: 14865
Add your Text widget inside Expanded or Flexible widget, try below code:
Row(
children: [
Text('Email'),
SizedBox(
width: 10,
),
Expanded(
child: Text(
'[email protected]@gmail.com'),
),
],
),
Upvotes: 0