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:
parent
93786bad44
commit
c821b8c4fe
@ -55,7 +55,7 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
|
||||
LocaleKeys.grid_field_editProperty.tr(),
|
||||
),
|
||||
leading: AppBarBackButton(
|
||||
onTap: () => context.pop(),
|
||||
onTap: () => context.pop(field),
|
||||
),
|
||||
),
|
||||
body: FieldOptionEditor(
|
||||
@ -108,7 +108,7 @@ class _MobileEditPropertyScreenState extends State<MobileEditPropertyScreen> {
|
||||
service.show();
|
||||
break;
|
||||
}
|
||||
context.pop();
|
||||
context.pop(field);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
@ -202,8 +202,9 @@ class _FieldOptionEditorState extends State<FieldOptionEditor> {
|
||||
() {
|
||||
if (widget.mode == FieldOptionMode.add) {
|
||||
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();
|
||||
final field = widget.fieldInfo.field.rebuild((field) {
|
||||
field.name = controller.text;
|
||||
field.fieldType = fieldType;
|
||||
});
|
||||
final optionValues = await showEditFieldScreen(
|
||||
context,
|
||||
|
Loading…
Reference in New Issue
Block a user