mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-09 18:10:29 +00:00
fix(ui): keep mobile create task actions in safe area (#1504)
This commit is contained in:
2 files changed
+26
-19
No files matched your search
@@ -687,24 +687,27 @@ class _CreateTaskWindowPageState extends ConsumerState<CreateTaskWindowPage> {
|
||||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: const EdgeInsets.fromLTRB(24, 12, 24, 20),
|
||||
decoration: BoxDecoration(
|
||||
border: Border(top: BorderSide(color: palette.border)),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
CreateTaskActionButtons(
|
||||
submitting: _creating,
|
||||
onCancel: _closeWindow,
|
||||
onSubmit: _confirm,
|
||||
cancelLabel: context.l10n.cancel,
|
||||
submitLabel: context.l10n.confirm,
|
||||
cancelButtonKey: const ValueKey('create-task-cancel-button'),
|
||||
submitButtonKey: const ValueKey('create-task-confirm-button'),
|
||||
),
|
||||
],
|
||||
SafeArea(
|
||||
top: false,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.fromLTRB(24, 12, 24, 20),
|
||||
decoration: BoxDecoration(
|
||||
border: Border(top: BorderSide(color: palette.border)),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
CreateTaskActionButtons(
|
||||
submitting: _creating,
|
||||
onCancel: _closeWindow,
|
||||
onSubmit: _confirm,
|
||||
cancelLabel: context.l10n.cancel,
|
||||
submitLabel: context.l10n.confirm,
|
||||
cancelButtonKey: const ValueKey('create-task-cancel-button'),
|
||||
submitButtonKey: const ValueKey('create-task-confirm-button'),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user