Two Way :
Expanded(
child:
AutoSizeText(
'Some long text that is not scaling with possible space?',
style: TextStyle(
fontSize: 12
),
minFontSize: 6,
maxLines: 2,
),
)
**OR**
AutoSizeText(
'Some long text that is not scaling with possible space?',
style: TextStyle(
fontSize: 12
),
minFontSize: 6,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
Use Expanded as I used and solved the problem... Expanded solves this text-overflow problem if used in a proper way.
Below is my code:
Row(
children: <Widget>[
Expanded(
flex: 1,
child: Icon(
Icons.watch_later_outlined,
size: 25,
color: Colors.blueAccent,
),
),
Expanded(
flex: 5,
child: Text("Write your long text here"
),
), // name
]),