mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +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
@ -195,7 +195,10 @@ class SpaceCancelOrConfirmButton extends StatelessWidget {
|
|||||||
child: FlowyButton(
|
child: FlowyButton(
|
||||||
useIntrinsicWidth: true,
|
useIntrinsicWidth: true,
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 9.0),
|
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,
|
onTap: onCancel,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -213,6 +216,7 @@ class SpaceCancelOrConfirmButton extends StatelessWidget {
|
|||||||
radius: BorderRadius.circular(8),
|
radius: BorderRadius.circular(8),
|
||||||
text: FlowyText.regular(
|
text: FlowyText.regular(
|
||||||
confirmButtonName,
|
confirmButtonName,
|
||||||
|
lineHeight: 1.0,
|
||||||
color: Theme.of(context).colorScheme.onPrimary,
|
color: Theme.of(context).colorScheme.onPrimary,
|
||||||
),
|
),
|
||||||
onTap: onConfirm,
|
onTap: onConfirm,
|
||||||
@ -253,6 +257,7 @@ class SpaceOkButton extends StatelessWidget {
|
|||||||
radius: BorderRadius.circular(8),
|
radius: BorderRadius.circular(8),
|
||||||
text: FlowyText.regular(
|
text: FlowyText.regular(
|
||||||
confirmButtonName,
|
confirmButtonName,
|
||||||
|
lineHeight: 1.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
onTap: onConfirm,
|
onTap: onConfirm,
|
||||||
|
Loading…
Reference in New Issue
Block a user