mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix(app-selector): fix text overflow on small screen (#1017)
This commit is contained in:
commit
0462815014
@ -84,14 +84,18 @@ class _InstalledAppItemState extends State<InstalledAppItem> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
Text(
|
Flexible(
|
||||||
|
child: Text(
|
||||||
widget.patchesCount == 1
|
widget.patchesCount == 1
|
||||||
? '• ${widget.patchesCount} patch'
|
? '• ${widget.patchesCount} patch'
|
||||||
: '• ${widget.patchesCount} patches',
|
: '• ${widget.patchesCount} patches',
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -78,14 +78,18 @@ class _NotInstalledAppItem extends State<NotInstalledAppItem> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
Text(
|
Flexible(
|
||||||
|
child: Text(
|
||||||
widget.patchesCount == 1
|
widget.patchesCount == 1
|
||||||
? '• ${widget.patchesCount} patch'
|
? '• ${widget.patchesCount} patch'
|
||||||
: '• ${widget.patchesCount} patches',
|
: '• ${widget.patchesCount} patches',
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user