mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix(mobile): remove elevation from edit field page and remove inksplash in card detail if disabled (#4491)
This commit is contained in:
parent
e88fb533c8
commit
747abba87f
@ -248,20 +248,16 @@ class RowDetailFab extends StatelessWidget {
|
|||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: BorderRadius.circular(26),
|
borderRadius: BorderRadius.circular(26),
|
||||||
borderOnForeground: false,
|
borderOnForeground: false,
|
||||||
child: InkWell(
|
child: previousDisabled
|
||||||
borderRadius: BorderRadius.circular(26),
|
? Icon(
|
||||||
onTap: () {
|
Icons.chevron_left_outlined,
|
||||||
if (!previousDisabled) {
|
color: Theme.of(context).disabledColor,
|
||||||
onTapPrevious();
|
)
|
||||||
}
|
: InkWell(
|
||||||
},
|
borderRadius: BorderRadius.circular(26),
|
||||||
child: Icon(
|
onTap: onTapPrevious,
|
||||||
Icons.chevron_left_outlined,
|
child: const Icon(Icons.chevron_left_outlined),
|
||||||
color: previousDisabled
|
),
|
||||||
? Theme.of(context).disabledColor
|
|
||||||
: null,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
FlowyText.medium(
|
FlowyText.medium(
|
||||||
@ -274,20 +270,16 @@ class RowDetailFab extends StatelessWidget {
|
|||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: BorderRadius.circular(26),
|
borderRadius: BorderRadius.circular(26),
|
||||||
borderOnForeground: false,
|
borderOnForeground: false,
|
||||||
child: InkWell(
|
child: nextDisabled
|
||||||
borderRadius: BorderRadius.circular(26),
|
? Icon(
|
||||||
onTap: () {
|
Icons.chevron_right_outlined,
|
||||||
if (!nextDisabled) {
|
color: Theme.of(context).disabledColor,
|
||||||
onTapNext();
|
)
|
||||||
}
|
: InkWell(
|
||||||
},
|
borderRadius: BorderRadius.circular(26),
|
||||||
child: Icon(
|
onTap: onTapNext,
|
||||||
Icons.chevron_right_outlined,
|
child: const Icon(Icons.chevron_right_outlined),
|
||||||
color: nextDisabled
|
),
|
||||||
? Theme.of(context).disabledColor
|
|
||||||
: null,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -53,6 +53,14 @@ class _MobileNewPropertyScreenState extends State<MobileNewPropertyScreen> {
|
|||||||
onTap: () => context.pop(),
|
onTap: () => context.pop(),
|
||||||
),
|
),
|
||||||
leadingWidth: 120,
|
leadingWidth: 120,
|
||||||
|
elevation: 0,
|
||||||
|
bottom: const PreferredSize(
|
||||||
|
preferredSize: Size.fromHeight(1),
|
||||||
|
child: Divider(
|
||||||
|
height: 1,
|
||||||
|
thickness: 1,
|
||||||
|
),
|
||||||
|
),
|
||||||
actions: [
|
actions: [
|
||||||
_SaveButton(
|
_SaveButton(
|
||||||
onSave: () {
|
onSave: () {
|
||||||
|
@ -55,6 +55,14 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
|
|||||||
title: FlowyText.medium(
|
title: FlowyText.medium(
|
||||||
LocaleKeys.grid_field_editProperty.tr(),
|
LocaleKeys.grid_field_editProperty.tr(),
|
||||||
),
|
),
|
||||||
|
elevation: 0,
|
||||||
|
bottom: const PreferredSize(
|
||||||
|
preferredSize: Size.fromHeight(1),
|
||||||
|
child: Divider(
|
||||||
|
height: 1,
|
||||||
|
thickness: 1,
|
||||||
|
),
|
||||||
|
),
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onTap: () => context.pop(field),
|
onTap: () => context.pop(field),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user