I have added text widget inside row widget.then 2nd text value
Text(
widget.leavemodel.reason ?? '',
style: TextStyle(
fontSize: 16.0,
),
getting 4 pixcel overflowed.how can i sloved this?
code is bello
Row(
children: [
Text(
'Reason :',
style:
TextStyle(fontSize: 16.0, fontWeight: FontWeight.w600),
),
Padding(
padding: const EdgeInsets.only(left: 15.0),
child: Text(
widget.leavemodel.reason ?? '',
style: TextStyle(
fontSize: 16.0,
),
),
),
],
),
solution for text overflowed in flutter
2
Answers
wrap your
Text
widget withExpanded
:two ways:
BEST WAY HERE THOUGH IS TO USE A WRAP WIDGET…