mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-24 01:28:24 +00:00
chore: center confirm or cancel (#5936)
Co-authored-by: Nathan.fooo <86001920+appflowy@users.noreply.github.com>
This commit is contained in:
parent
34465efc24
commit
7e53b34484
1 changed files with 6 additions and 1 deletions
|
|
@ -195,7 +195,10 @@ class SpaceCancelOrConfirmButton extends StatelessWidget {
|
|||
child: FlowyButton(
|
||||
useIntrinsicWidth: true,
|
||||
margin: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 9.0),
|
||||
text: FlowyText.regular(LocaleKeys.button_cancel.tr()),
|
||||
text: FlowyText.regular(
|
||||
LocaleKeys.button_cancel.tr(),
|
||||
lineHeight: 1.0,
|
||||
),
|
||||
onTap: onCancel,
|
||||
),
|
||||
),
|
||||
|
|
@ -213,6 +216,7 @@ class SpaceCancelOrConfirmButton extends StatelessWidget {
|
|||
radius: BorderRadius.circular(8),
|
||||
text: FlowyText.regular(
|
||||
confirmButtonName,
|
||||
lineHeight: 1.0,
|
||||
color: Theme.of(context).colorScheme.onPrimary,
|
||||
),
|
||||
onTap: onConfirm,
|
||||
|
|
@ -253,6 +257,7 @@ class SpaceOkButton extends StatelessWidget {
|
|||
radius: BorderRadius.circular(8),
|
||||
text: FlowyText.regular(
|
||||
confirmButtonName,
|
||||
lineHeight: 1.0,
|
||||
color: Colors.white,
|
||||
),
|
||||
onTap: onConfirm,
|
||||
|
|
|
|||
Loading…
Reference in a new issue