Skip to content

Commit ec40ebc

Browse files
authored
Merge pull request #142 from amitamrutiya2210/issue-142-fix-text-overflow
fix text overflow in rss feed and torrent details
2 parents fb7a781 + 6b4225d commit ec40ebc

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

lib/Components/RSSFeedHomePage.dart

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,12 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
152152
Expanded(
153153
child: Row(
154154
children: [
155-
Text(model
156-
.RssFeedsList[index].label
157-
.toString()),
155+
Flexible(
156+
child: Text(model
157+
.RssFeedsList[index]
158+
.label
159+
.toString()),
160+
),
158161
SizedBox(width: 10),
159162
Text(model.RssFeedsList[index]
160163
.count !=
@@ -1333,9 +1336,12 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
13331336
Expanded(
13341337
child: Row(
13351338
children: [
1336-
Text(model
1337-
.RssRulesList[index].label
1338-
.toString()),
1339+
Flexible(
1340+
child: Text(model
1341+
.RssRulesList[index]
1342+
.label
1343+
.toString()),
1344+
),
13391345
SizedBox(width: 10),
13401346
Text(model.RssRulesList[index]
13411347
.count !=

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)