Flutter Wrap text on overflow, like insert ellipsis or fade. You should wrap your Container in a Flexible to let your Row know that it’s ok for the Container to be narrower than its intrinsic width. Expanded will also work.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | new Flexible( child: new Container( padding: new EdgeInsets.only(right: 13.0), child: new Text( 'Text largeeeeeeeeeeeeeeeeeeeeeee', overflow: TextOverflow.ellipsis, style: new TextStyle( fontSize: 13.0, fontFamily: 'Roboto', color: new Color(0xFF212121), fontWeight: FontWeight.bold, ), ), ), ), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.