From e64318c94700fa7a156287f0b82c4f95112b5f74 Mon Sep 17 00:00:00 2001 From: Aabed Khan Date: Thu, 13 Jul 2023 00:14:47 +0545 Subject: [PATCH] fix(app-selector): fix text overflow on small screen --- .../appSelectorView/installed_app_item.dart | 16 ++++++++++------ .../appSelectorView/not_installed_app_item.dart | 16 ++++++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/lib/ui/widgets/appSelectorView/installed_app_item.dart b/lib/ui/widgets/appSelectorView/installed_app_item.dart index 70a49a1a..69b08371 100644 --- a/lib/ui/widgets/appSelectorView/installed_app_item.dart +++ b/lib/ui/widgets/appSelectorView/installed_app_item.dart @@ -84,12 +84,16 @@ class _InstalledAppItemState extends State { }, ), const SizedBox(width: 4), - Text( - widget.patchesCount == 1 - ? '• ${widget.patchesCount} patch' - : '• ${widget.patchesCount} patches', - style: TextStyle( - color: Theme.of(context).colorScheme.secondary, + Flexible( + child: Text( + widget.patchesCount == 1 + ? '• ${widget.patchesCount} patch' + : '• ${widget.patchesCount} patches', + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: Theme.of(context).colorScheme.secondary, + ), ), ), ], diff --git a/lib/ui/widgets/appSelectorView/not_installed_app_item.dart b/lib/ui/widgets/appSelectorView/not_installed_app_item.dart index e932908b..ee40b8c1 100644 --- a/lib/ui/widgets/appSelectorView/not_installed_app_item.dart +++ b/lib/ui/widgets/appSelectorView/not_installed_app_item.dart @@ -78,12 +78,16 @@ class _NotInstalledAppItem extends State { }, ), const SizedBox(width: 4), - Text( - widget.patchesCount == 1 - ? '• ${widget.patchesCount} patch' - : '• ${widget.patchesCount} patches', - style: TextStyle( - color: Theme.of(context).colorScheme.secondary, + Flexible( + child: Text( + widget.patchesCount == 1 + ? '• ${widget.patchesCount} patch' + : '• ${widget.patchesCount} patches', + maxLines: 1, + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: Theme.of(context).colorScheme.secondary, + ), ), ), ],