Fix popup menu text overflow on narrow screens
Wrap menu item text in Flexible widget with ellipsis overflow to prevent layout overflow errors.
This commit is contained in:
parent
b7ccbe6a19
commit
1665070397
@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user