Skip to content

Commit 22bbc10

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 bae2109 commit 22bbc10

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
@@ -169,6 +169,7 @@ class ActionSheetCancelButton extends StatelessWidget {
169169
final designVariables = DesignVariables.of(context);
170170
return TextButton(
171171
style: TextButton.styleFrom(
172+
minimumSize: const Size.fromHeight(44),
172173
padding: const EdgeInsets.all(10),
173174
foregroundColor: designVariables.contextMenuCancelText,
174175
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(7)),
@@ -182,8 +183,7 @@ class ActionSheetCancelButton extends StatelessWidget {
182183
},
183184
child: Text(ZulipLocalizations.of(context).dialogCancel,
184185
style: const TextStyle(fontSize: 20, height: 24 / 20)
185-
.merge(weightVariableTextStyle(context, wght: 600))),
186-
);
186+
.merge(weightVariableTextStyle(context, wght: 600))));
187187
}
188188
}
189189

0 commit comments

Comments
 (0)