maxLines for web is not working if the text has multiple line text but the first line isn't long enough for the container that holds the text in it.
ex. If my text has 4 lines but the first line is short, maxLines doesn't work and shows the entire text.
I made changes to Container size to make the maxLine work.
Container(width: (myText.toString().split('\n')[0].length > 70) ? 680 : 600)
Thanks
Hi,
maxLines for web is not working if the text has multiple line text but the first line isn't long enough for the container that holds the text in it. ex. If my text has 4 lines but the first line is short, maxLines doesn't work and shows the entire text.
I made changes to Container size to make the maxLine work. Container(width: (myText.toString().split('\n')[0].length > 70) ? 680 : 600) Thanks