fix: quick edit field editor overflow

This commit is contained in:
Lucas.Xu
2023-12-05 14:43:45 +08:00
parent af3999587d
commit 68aca7e9d5
2 changed files with 9 additions and 11 deletions

View File

@ -90,14 +90,18 @@ void showQuickEditField(
) async {
showMobileBottomSheet(
context,
isScrollControlled: true,
padding: EdgeInsets.zero,
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
constraints: const BoxConstraints(maxHeight: 500),
resizeToAvoidBottomInset: true,
builder: (context) {
return QuickEditField(
viewId: viewId,
fieldInfo: fieldInfo,
return ConstrainedBox(
constraints: const BoxConstraints(maxHeight: 500),
child: SingleChildScrollView(
child: QuickEditField(
viewId: viewId,
fieldInfo: fieldInfo,
),
),
);
},
);

View File

@ -1,6 +0,0 @@
<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.75 6H5.13889H16.25" stroke="#FB006D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M7.22201 6V4.5C7.22201 4.10218 7.36833 3.72064 7.6288 3.43934C7.88927 3.15804 8.24254 3 8.61089 3H11.3887C11.757 3 12.1103 3.15804 12.3708 3.43934C12.6312 3.72064 12.7776 4.10218 12.7776 4.5V6M14.8609 6V16.5C14.8609 16.8978 14.7146 17.2794 14.4541 17.5607C14.1936 17.842 13.8404 18 13.472 18H6.52756C6.1592 18 5.80594 17.842 5.54547 17.5607C5.285 17.2794 5.13867 16.8978 5.13867 16.5V6H14.8609Z" stroke="#FB006D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8.61133 9.75V14.25" stroke="#FB006D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.3887 9.75V14.25" stroke="#FB006D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 944 B