Skip to content

Commit 08dee62

Browse files
committed
action_sheet: Set minimum height for the cancel button
With a small font size, the button can be shorter than it is specified in the Figma design. See: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=3479-26262&node-type=symbol&t=hGZtzX2QTLse81un-0 Signed-off-by: Zixuan James Li <[email protected]>
1 parent c5f1cd4 commit 08dee62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/action_sheet.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class ActionSheetCancelButton extends StatelessWidget {
126126
final designVariables = DesignVariables.of(context);
127127
return TextButton(
128128
style: TextButton.styleFrom(
129+
minimumSize: const Size.fromHeight(44),
129130
padding: const EdgeInsets.all(10),
130131
foregroundColor: designVariables.contextMenuCancelText,
131132
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(7)),
@@ -139,8 +140,7 @@ class ActionSheetCancelButton extends StatelessWidget {
139140
},
140141
child: Text(ZulipLocalizations.of(context).dialogCancel,
141142
style: const TextStyle(fontSize: 20, height: 24 / 20)
142-
.merge(weightVariableTextStyle(context, wght: 600))),
143-
);
143+
.merge(weightVariableTextStyle(context, wght: 600))));
144144
}
145145
}
146146

0 commit comments

Comments
 (0)