Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: some mobile ui bugs (#4823)

Richard Shiue3b0d82287d8f
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<MobileSelectOptionEditor> {
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(