From 3b0d82287d8fe2c9e92fa36ff68b80b23203a75e Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Tue, 5 Mar 2024 21:45:39 +0800 Subject: [PATCH] fix: some mobile ui bugs (#4823) * fix: select option editor mobile * chore: field type icon --- .../card/card_detail/widgets/option_text_field.dart | 5 +++-- .../cell_editor/mobile_select_option_editor.dart | 11 +++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/widgets/option_text_field.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/widgets/option_text_field.dart index 3439ba3afa..fc869a54c7 100644 --- a/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/widgets/option_text_field.dart +++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/widgets/option_text_field.dart @@ -42,12 +42,13 @@ class OptionTextField extends StatelessWidget { width: 38, decoration: BoxDecoration( borderRadius: BorderRadius.circular(12), - color: type.mobileIconBackgroundColor, + color: Theme.of(context).brightness == Brightness.light + ? type.mobileIconBackgroundColor + : type.mobileIconBackgroundColorDark, ), child: Center( child: FlowySvg( type.svgData, - blendMode: null, size: const Size.square(22), ), ), diff --git a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell_editor/mobile_select_option_editor.dart b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell_editor/mobile_select_option_editor.dart index f7c1c6d67d..f1c8b424f5 100644 --- a/frontend/appflowy_flutter/lib/plugins/database/widgets/cell_editor/mobile_select_option_editor.dart +++ b/frontend/appflowy_flutter/lib/plugins/database/widgets/cell_editor/mobile_select_option_editor.dart @@ -84,12 +84,11 @@ class _MobileSelectOptionEditorState extends State { const height = 44.0; return Stack( children: [ - Align( - alignment: Alignment.centerLeft, - child: showMoreOptions - ? AppBarBackButton(onTap: _popOrBack) - : AppBarCloseButton(onTap: _popOrBack), - ), + if (showMoreOptions) + Align( + alignment: Alignment.centerLeft, + child: AppBarBackButton(onTap: _popOrBack), + ), SizedBox( height: 44.0, child: Align(