From 16650703973dc0ba69d24a97c20b4034a21f58dc Mon Sep 17 00:00:00 2001 From: m3mo Date: Tue, 3 Feb 2026 19:47:02 +0100 Subject: [PATCH] Fix popup menu text overflow on narrow screens Wrap menu item text in Flexible widget with ellipsis overflow to prevent layout overflow errors. --- .../tasks/presentation/widgets/task_tile.dart | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/features/tasks/presentation/widgets/task_tile.dart b/lib/features/tasks/presentation/widgets/task_tile.dart index 42a6925..198f6a1 100644 --- a/lib/features/tasks/presentation/widgets/task_tile.dart +++ b/lib/features/tasks/presentation/widgets/task_tile.dart @@ -162,7 +162,12 @@ class TaskTile extends StatelessWidget { children: [ const Icon(Icons.schedule, size: 24), const SizedBox(width: 12), - Text(l10n.rescheduleToTomorrow), + Flexible( + child: Text( + l10n.rescheduleToTomorrow, + overflow: TextOverflow.ellipsis, + ), + ), ], ), ), @@ -173,7 +178,13 @@ class TaskTile extends StatelessWidget { children: [ Icon(Icons.delete, size: 24, color: Theme.of(context).colorScheme.error), const SizedBox(width: 12), - Text(l10n.delete, style: TextStyle(color: Theme.of(context).colorScheme.error)), + Flexible( + child: Text( + l10n.delete, + style: TextStyle(color: Theme.of(context).colorScheme.error), + overflow: TextOverflow.ellipsis, + ), + ), ], ), ),