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(mobile): remove elevation from edit field page and remove inksplash in card detail if disabled (#4491)

Richard Shiue747abba87f6c
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart
index 7a2cc336a4..7c7adda619 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart
@@ -248,20 +248,16 @@ class RowDetailFab extends StatelessWidget {
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(26),
borderOnForeground: false,
- child: InkWell(
- borderRadius: BorderRadius.circular(26),
- onTap: () {
- if (!previousDisabled) {
- onTapPrevious();
- }
- },
- child: Icon(
- Icons.chevron_left_outlined,
- color: previousDisabled
- ? Theme.of(context).disabledColor
- : null,
- ),
- ),
+ child: previousDisabled
+ ? Icon(
+ Icons.chevron_left_outlined,
+ color: Theme.of(context).disabledColor,
+ )
+ : InkWell(
+ borderRadius: BorderRadius.circular(26),
+ onTap: onTapPrevious,
+ child: const Icon(Icons.chevron_left_outlined),
+ ),
),
),
FlowyText.medium(
@@ -274,20 +270,16 @@ class RowDetailFab extends StatelessWidget {
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.circular(26),
borderOnForeground: false,
- child: InkWell(
- borderRadius: BorderRadius.circular(26),
- onTap: () {
- if (!nextDisabled) {
- onTapNext();
- }
- },
- child: Icon(
- Icons.chevron_right_outlined,
- color: nextDisabled
- ? Theme.of(context).disabledColor
- : null,
- ),
- ),
+ child: nextDisabled
+ ? Icon(
+ Icons.chevron_right_outlined,
+ color: Theme.of(context).disabledColor,
+ )
+ : InkWell(
+ borderRadius: BorderRadius.circular(26),
+ onTap: onTapNext,
+ child: const Icon(Icons.chevron_right_outlined),
+ ),
),
),
],
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_create_field_screen.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_create_field_screen.dart
index ee6bc35865..44bdf1f509 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_create_field_screen.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_create_field_screen.dart
@@ -53,6 +53,14 @@ class _MobileNewPropertyScreenState extends State<MobileNewPropertyScreen> {
onTap: () => context.pop(),
),
leadingWidth: 120,
+ elevation: 0,
+ bottom: const PreferredSize(
+ preferredSize: Size.fromHeight(1),
+ child: Divider(
+ height: 1,
+ thickness: 1,
+ ),
+ ),
actions: [
_SaveButton(
onSave: () {
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart
index 0f8ee5ddde..cf7dde0439 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_edit_field_screen.dart
@@ -55,6 +55,14 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
title: FlowyText.medium(
LocaleKeys.grid_field_editProperty.tr(),
),
+ elevation: 0,
+ bottom: const PreferredSize(
+ preferredSize: Size.fromHeight(1),
+ child: Divider(
+ height: 1,
+ thickness: 1,
+ ),
+ ),
leading: AppBarBackButton(
onTap: () => context.pop(field),
),