mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: field editor bugs (#4241)
This commit is contained in:
@ -55,7 +55,7 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
|
|||||||
LocaleKeys.grid_field_editProperty.tr(),
|
LocaleKeys.grid_field_editProperty.tr(),
|
||||||
),
|
),
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onTap: () => context.pop(),
|
onTap: () => context.pop(field),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: FieldOptionEditor(
|
body: FieldOptionEditor(
|
||||||
@ -108,7 +108,7 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
|
|||||||
service.show();
|
service.show();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
context.pop();
|
context.pop(field);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -202,8 +202,9 @@ class _FieldOptionEditorState extends State<FieldOptionEditor> {
|
|||||||
() {
|
() {
|
||||||
if (widget.mode == FieldOptionMode.add) {
|
if (widget.mode == FieldOptionMode.add) {
|
||||||
controller.text = type.i18n;
|
controller.text = type.i18n;
|
||||||
|
_updateOptionValues(name: type.i18n);
|
||||||
}
|
}
|
||||||
_updateOptionValues(type: type, name: type.i18n);
|
_updateOptionValues(type: type);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -77,6 +77,7 @@ class _QuickEditFieldState extends State<QuickEditField> {
|
|||||||
widget.fieldInfo.field.freeze();
|
widget.fieldInfo.field.freeze();
|
||||||
final field = widget.fieldInfo.field.rebuild((field) {
|
final field = widget.fieldInfo.field.rebuild((field) {
|
||||||
field.name = controller.text;
|
field.name = controller.text;
|
||||||
|
field.fieldType = fieldType;
|
||||||
});
|
});
|
||||||
final optionValues = await showEditFieldScreen(
|
final optionValues = await showEditFieldScreen(
|
||||||
context,
|
context,
|
||||||
|
Reference in New Issue
Block a user