Skip to content

Commit 846db4a

Browse files
committed
fix text overflow error in torrent detail screen
1 parent 0442a4b commit 846db4a

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

lib/Components/torrent_tile.dart

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class _TorrentTileState extends State<TorrentTile> {
4949
@override
5050
Widget build(BuildContext context) {
5151
double hp = MediaQuery.of(context).size.height;
52+
double wp = MediaQuery.of(context).size.width;
5253
return Slidable(
5354
actionPane: SlidableBehindActionPane(),
5455
actionExtentRatio: 0.25,
@@ -315,7 +316,12 @@ class _TorrentTileState extends State<TorrentTile> {
315316
mainAxisAlignment: MainAxisAlignment.spaceBetween,
316317
children: [
317318
Text('Location'),
318-
Text(widget.model.directory),
319+
Flexible(
320+
child: Container(
321+
padding: EdgeInsets.only(left: wp * 0.1),
322+
child: Text(widget.model.directory),
323+
),
324+
),
319325
],
320326
),
321327
SizedBox(
@@ -327,9 +333,14 @@ class _TorrentTileState extends State<TorrentTile> {
327333
Text(
328334
'Tags',
329335
),
330-
Text((widget.model.tags.length != 0)
331-
? widget.model.tags.toString()
332-
: 'None'),
336+
Flexible(
337+
child: Container(
338+
padding: EdgeInsets.only(left: wp * 0.17),
339+
child: Text((widget.model.tags.length != 0)
340+
? widget.model.tags.toString()
341+
: 'None'),
342+
),
343+
),
333344
],
334345
),
335346
SizedBox(

0 commit comments

Comments
 (0)