This PR fixes getting maxLines value depending on whether text is expanded or not.
The current _maxLines method returns the value of 66 if the text widget is expanded and has an ellipsis overflow. This has 2 issues.
1) The overflow is irrelevant when the text is expanded
2) 2 ^ 64 returns 66
The fix sets maxLines to be null if the text is expanded, otherwise use maxLines which is passed in.
This PR fixes getting maxLines value depending on whether text is expanded or not.
The current _maxLines method returns the value of 66 if the text widget is expanded and has an ellipsis overflow. This has 2 issues. 1) The overflow is irrelevant when the text is expanded 2) 2 ^ 64 returns 66
The fix sets maxLines to be null if the text is expanded, otherwise use maxLines which is passed in.