chore: delete button ui

This commit is contained in:
appflowy 2022-09-23 16:23:31 +08:00
parent a352adf0d7
commit ee7cb0cb42
2 changed files with 4 additions and 2 deletions

View File

@ -236,9 +236,10 @@ class _DeleteFieldButton extends StatelessWidget {
color: enable ? null : theme.shader4,
),
onTap: () => onDeleted?.call(),
hoverColor: theme.hover,
onHover: (_) => popoverMutex.close(),
);
// if (enable) button = button;
return button;
return SizedBox(height: 36, child: button);
},
);
}

View File

@ -280,6 +280,7 @@ class _RowDetailCellState extends State<_RowDetailCell> {
AppFlowyPopover(
controller: popover,
constraints: BoxConstraints.loose(const Size(240, 600)),
triggerActions: PopoverTriggerFlags.none,
popupBuilder: (popoverContext) => buildFieldEditor(),
child: SizedBox(
width: 150,