chore: center confirm or cancel (#5936)

Co-authored-by: Nathan.fooo <86001920+appflowy@users.noreply.github.com>
This commit is contained in:
Annie 2024-08-12 16:19:16 +08:00 committed by GitHub
parent 34465efc24
commit 7e53b34484
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,