File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
lib/Pages/home_screen/widgets Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ class _AddAutoTorrentState extends State<AddAutoTorrent> {
84
84
Padding (
85
85
padding: const EdgeInsets .only (left: 5 ),
86
86
child: Text (
87
- fileSelectedName.length > 25
88
- ? fileSelectedName.substring (0 , 25 ) +
87
+ fileSelectedName.length > 24
88
+ ? fileSelectedName.substring (0 , 24 ) +
89
89
'.torrent'
90
90
: fileSelectedName + '.torrent' ,
91
91
style: TextStyle (
Original file line number Diff line number Diff line change @@ -1464,6 +1464,9 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
1464
1464
physics: ClampingScrollPhysics (),
1465
1465
itemCount: state.rssRulesList.length,
1466
1466
itemBuilder: (context, index) {
1467
+ String tagLable = "${l10n .feeds_tags }: " +
1468
+ state.rssRulesList[index].tags[0 ]
1469
+ .toString ();
1467
1470
return Column (
1468
1471
children: [
1469
1472
ListTile (
@@ -1518,12 +1521,12 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
1518
1521
const EdgeInsets .all (
1519
1522
5.0 ),
1520
1523
child: Text (
1521
- "${ l10n . feeds_tags }: " +
1522
- state
1523
- .rssRulesList[
1524
- index]
1525
- .tags[ 0 ]
1526
- . toString () ,
1524
+ tagLable.length <= 20
1525
+ ? tagLable
1526
+ : tagLable
1527
+ . substring (
1528
+ 0 , 20 ) +
1529
+ ".." ,
1527
1530
style: TextStyle (
1528
1531
fontSize: 12 ),
1529
1532
),
Original file line number Diff line number Diff line change @@ -357,12 +357,12 @@ void main() {
357
357
findsOneWidget);
358
358
expect (find.byKey (Key ('Select Language Dropdown' )), findsOneWidget);
359
359
expect (find.text ('Language' ), findsOneWidget);
360
- expect (find.text ('English ' ), findsOneWidget);
361
- await tester.tap (find.text ('English ' ));
360
+ expect (find.text ('Automatic ' ), findsOneWidget);
361
+ await tester.tap (find.text ('Automatic ' ));
362
362
await tester.pumpAndSettle ();
363
- expect (find.text ('English' ), findsNWidgets ( 2 ) );
364
- expect (find.text ('हिन्दी' ), findsNWidgets ( 2 ) );
365
- await tester.tap (find.text ('हिन्दी' ).last );
363
+ expect (find.text ('English' ), findsOneWidget );
364
+ expect (find.text ('हिन्दी' ), findsOneWidget );
365
+ await tester.tap (find.text ('हिन्दी' ));
366
366
await tester.pumpAndSettle ();
367
367
expect (find.text ('हिन्दी' ), findsOneWidget);
368
368
expect (find.widgetWithText (ElevatedButton , 'Set' ), findsOneWidget);
You can’t perform that action at this time.
0 commit comments