diff --git a/lib/widgets/action_sheet.dart b/lib/widgets/action_sheet.dart index 3a786874b6d..1e07ed58d68 100644 --- a/lib/widgets/action_sheet.dart +++ b/lib/widgets/action_sheet.dart @@ -167,23 +167,24 @@ class ActionSheetCancelButton extends StatelessWidget { @override Widget build(BuildContext context) { final designVariables = DesignVariables.of(context); - return TextButton( - style: TextButton.styleFrom( - padding: const EdgeInsets.all(10), - foregroundColor: designVariables.contextMenuCancelText, - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(7)), - splashFactory: NoSplash.splashFactory, - ).copyWith(backgroundColor: WidgetStateColor.fromMap({ - WidgetState.pressed: designVariables.contextMenuCancelPressedBg, - ~WidgetState.pressed: designVariables.contextMenuCancelBg, - })), - onPressed: () { - Navigator.pop(context); - }, - child: Text(ZulipLocalizations.of(context).dialogCancel, - style: const TextStyle(fontSize: 20, height: 24 / 20) - .merge(weightVariableTextStyle(context, wght: 600))), - ); + return ConstrainedBox( + constraints: const BoxConstraints(minHeight: 44), + child: TextButton( + style: TextButton.styleFrom( + padding: const EdgeInsets.all(10), + foregroundColor: designVariables.contextMenuCancelText, + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(7)), + splashFactory: NoSplash.splashFactory, + ).copyWith(backgroundColor: WidgetStateColor.fromMap({ + WidgetState.pressed: designVariables.contextMenuCancelPressedBg, + ~WidgetState.pressed: designVariables.contextMenuCancelBg, + })), + onPressed: () { + Navigator.pop(context); + }, + child: Text(ZulipLocalizations.of(context).dialogCancel, + style: const TextStyle(fontSize: 20, height: 24 / 20) + .merge(weightVariableTextStyle(context, wght: 600))))); } }