From 7e53b34484d3350ec02b7143ee29fef2ca0da1c1 Mon Sep 17 00:00:00 2001 From: Annie Date: Mon, 12 Aug 2024 16:19:16 +0800 Subject: [PATCH] chore: center confirm or cancel (#5936) Co-authored-by: Nathan.fooo <86001920+appflowy@users.noreply.github.com> --- .../home/menu/sidebar/space/shared_widget.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart index cda46128e7..992647bc08 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart @@ -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,