I want to design a combined Text widget that consists of two Text widget.
The size of the first Text widget changes as the content changes, and when it reaches the maximum length, an ellipsis is displayed. Like below, the red line part is fixed.
Then this is my code:
Row(
children: <Widget>[
Expanded(
child: Text(
'W',
overflow: TextOverflow.ellipsis,
),
),
Text(
'(0x1234…1234)',
style: TextStyle(
fontSize: 12,
color: Colors.black,
),
),
],
);
When the length is the largest, the display is normal. But when the length is very small, there will be a blank in the middle.
So, how do I need to improve my code?


