chore: remove field type option widget one by one

This commit is contained in:
appflowy
2022-09-20 16:37:14 +08:00
parent 370db4f71b
commit 5191b6af93
4 changed files with 12 additions and 4 deletions

View File

@ -49,8 +49,14 @@ class SelectOptionTextField extends StatelessWidget {
initialTags: selectedOptionMap.keys.toList(), initialTags: selectedOptionMap.keys.toList(),
focusNode: _focusNode, focusNode: _focusNode,
textSeparators: const [','], textSeparators: const [','],
inputfieldBuilder: (BuildContext context, editController, focusNode, inputfieldBuilder: (
error, onChanged, onSubmitted) { BuildContext context,
editController,
focusNode,
error,
onChanged,
onSubmitted,
) {
return ((context, sc, tags, onTagDelegate) { return ((context, sc, tags, onTagDelegate) {
return TextField( return TextField(
autofocus: true, autofocus: true,

View File

@ -65,7 +65,7 @@ class FieldTypeOptionEditor extends StatelessWidget {
return SizedBox( return SizedBox(
height: GridSize.typeOptionItemHeight, height: GridSize.typeOptionItemHeight,
child: AppFlowyPopover( child: AppFlowyPopover(
constraints: BoxConstraints.loose(const Size(460, 440)), constraints: BoxConstraints.loose(const Size(460, 540)),
asBarrier: true, asBarrier: true,
triggerActions: PopoverTriggerFlags.click | PopoverTriggerFlags.hover, triggerActions: PopoverTriggerFlags.click | PopoverTriggerFlags.hover,
mutex: popoverMutex, mutex: popoverMutex,

View File

@ -64,6 +64,7 @@ class DateTypeOptionWidget extends TypeOptionWidget {
Widget _renderDateFormatButton(BuildContext context, DateFormat dataFormat) { Widget _renderDateFormatButton(BuildContext context, DateFormat dataFormat) {
return AppFlowyPopover( return AppFlowyPopover(
mutex: popoverMutex, mutex: popoverMutex,
asBarrier: true,
triggerActions: PopoverTriggerFlags.hover | PopoverTriggerFlags.click, triggerActions: PopoverTriggerFlags.hover | PopoverTriggerFlags.click,
offset: const Offset(20, 0), offset: const Offset(20, 0),
constraints: BoxConstraints.loose(const Size(460, 440)), constraints: BoxConstraints.loose(const Size(460, 440)),
@ -85,6 +86,7 @@ class DateTypeOptionWidget extends TypeOptionWidget {
Widget _renderTimeFormatButton(BuildContext context, TimeFormat timeFormat) { Widget _renderTimeFormatButton(BuildContext context, TimeFormat timeFormat) {
return AppFlowyPopover( return AppFlowyPopover(
mutex: popoverMutex, mutex: popoverMutex,
asBarrier: true,
triggerActions: PopoverTriggerFlags.hover | PopoverTriggerFlags.click, triggerActions: PopoverTriggerFlags.hover | PopoverTriggerFlags.click,
offset: const Offset(20, 0), offset: const Offset(20, 0),
constraints: BoxConstraints.loose(const Size(460, 440)), constraints: BoxConstraints.loose(const Size(460, 440)),

View File

@ -120,7 +120,7 @@ class _GridPropertyCell extends StatelessWidget {
mutex: popoverMutex, mutex: popoverMutex,
triggerActions: PopoverTriggerFlags.click, triggerActions: PopoverTriggerFlags.click,
offset: const Offset(20, 0), offset: const Offset(20, 0),
constraints: BoxConstraints.loose(const Size(240, 200)), constraints: BoxConstraints.loose(const Size(240, 400)),
child: FlowyButton( child: FlowyButton(
text: FlowyText.medium(fieldContext.name, fontSize: 12), text: FlowyText.medium(fieldContext.name, fontSize: 12),
hoverColor: theme.hover, hoverColor: theme.hover,