Skip to content

Commit 331f1aa

Browse files
authored
fix: fixes text clipping for long torrent names (#56)
1 parent c63b7ca commit 331f1aa

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/components/torrent_tile.dart

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,15 @@ class TorrentTile extends StatelessWidget {
9494
mainAxisAlignment: MainAxisAlignment.spaceBetween,
9595
children: <Widget>[
9696
Flexible(
97-
child: Text(
98-
torrent.name,
99-
style: TextStyle(
100-
fontWeight: FontWeight.w600, fontSize: 16),
101-
)),
97+
child: Text(
98+
torrent.name,
99+
maxLines: 1,
100+
overflow: TextOverflow.ellipsis,
101+
style: TextStyle(
102+
fontWeight: FontWeight.w600,
103+
fontSize: 16),
104+
),
105+
),
102106
Flexible(
103107
child: Text(
104108
'${filesize(torrent.downloadedData)}${torrent.dlSpeed == 0 ? '' : ' | ' + torrent.getEta}',

0 commit comments

Comments
 (0)