mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-25 14:51:26 +00:00
fix(flutter_desktop): clicking on empty space when editing a cell sho… (#6949)
* fix(flutter_desktop): clicking on empty space when editing a cell shouldn't close event card * test: fix integration tests
This commit is contained in:
parent
d21c0c0dfc
commit
7b93bbe5ff
@ -301,6 +301,7 @@ void main() {
|
|||||||
await tester.createOption(name: "qwer");
|
await tester.createOption(name: "qwer");
|
||||||
await tester.selectOption(name: "asdf");
|
await tester.selectOption(name: "asdf");
|
||||||
await tester.dismissCellEditor();
|
await tester.dismissCellEditor();
|
||||||
|
await tester.dismissCellEditor();
|
||||||
|
|
||||||
await tester.tapDatabaseFilterButton();
|
await tester.tapDatabaseFilterButton();
|
||||||
await tester.tapCreateFilterByFieldType(FieldType.MultiSelect, "Tags");
|
await tester.tapCreateFilterByFieldType(FieldType.MultiSelect, "Tags");
|
||||||
@ -332,6 +333,7 @@ void main() {
|
|||||||
await tester.tapButton(finderForFieldType(FieldType.MultiSelect));
|
await tester.tapButton(finderForFieldType(FieldType.MultiSelect));
|
||||||
await tester.selectOption(name: "asdf");
|
await tester.selectOption(name: "asdf");
|
||||||
await tester.dismissCellEditor();
|
await tester.dismissCellEditor();
|
||||||
|
await tester.dismissCellEditor();
|
||||||
|
|
||||||
tester.assertNumberOfEventsInCalendar(0);
|
tester.assertNumberOfEventsInCalendar(0);
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,7 @@ class DesktopRowDetailDateCellSkin extends IEditableDateCellSkin {
|
|||||||
direction: PopoverDirection.bottomWithLeftAligned,
|
direction: PopoverDirection.bottomWithLeftAligned,
|
||||||
constraints: BoxConstraints.loose(const Size(260, 620)),
|
constraints: BoxConstraints.loose(const Size(260, 620)),
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
|
asBarrier: true,
|
||||||
child: Container(
|
child: Container(
|
||||||
alignment: AlignmentDirectional.centerStart,
|
alignment: AlignmentDirectional.centerStart,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
|
||||||
|
|||||||
@ -252,6 +252,7 @@ class _AddFileButtonState extends State<_AddFileButton> {
|
|||||||
direction: widget.direction,
|
direction: widget.direction,
|
||||||
constraints: const BoxConstraints(maxWidth: _menuWidth),
|
constraints: const BoxConstraints(maxWidth: _menuWidth),
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
|
asBarrier: true,
|
||||||
onClose: () =>
|
onClose: () =>
|
||||||
context.read<EditorDropManagerState>().remove(_dropFileKey),
|
context.read<EditorDropManagerState>().remove(_dropFileKey),
|
||||||
popupBuilder: (_) {
|
popupBuilder: (_) {
|
||||||
@ -458,6 +459,7 @@ class _FilePreviewRenderState extends State<_FilePreviewRender> {
|
|||||||
offset: const Offset(0, 5),
|
offset: const Offset(0, 5),
|
||||||
triggerActions: PopoverTriggerFlags.none,
|
triggerActions: PopoverTriggerFlags.none,
|
||||||
onClose: () => setState(() => isSelected = false),
|
onClose: () => setState(() => isSelected = false),
|
||||||
|
asBarrier: true,
|
||||||
popupBuilder: (popoverContext) => MultiBlocProvider(
|
popupBuilder: (popoverContext) => MultiBlocProvider(
|
||||||
providers: [
|
providers: [
|
||||||
BlocProvider.value(value: context.read<RowDetailBloc>()),
|
BlocProvider.value(value: context.read<RowDetailBloc>()),
|
||||||
|
|||||||
@ -24,6 +24,7 @@ class DesktopRowDetailRelationCellSkin extends IEditableRelationCellSkin {
|
|||||||
direction: PopoverDirection.bottomWithLeftAligned,
|
direction: PopoverDirection.bottomWithLeftAligned,
|
||||||
constraints: const BoxConstraints(maxWidth: 400, maxHeight: 400),
|
constraints: const BoxConstraints(maxWidth: 400, maxHeight: 400),
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
|
asBarrier: true,
|
||||||
onClose: () => cellContainerNotifier.isFocus = false,
|
onClose: () => cellContainerNotifier.isFocus = false,
|
||||||
popupBuilder: (context) {
|
popupBuilder: (context) {
|
||||||
return BlocProvider.value(
|
return BlocProvider.value(
|
||||||
|
|||||||
@ -25,6 +25,7 @@ class DesktopRowDetailSelectOptionCellSkin
|
|||||||
controller: popoverController,
|
controller: popoverController,
|
||||||
constraints: const BoxConstraints.tightFor(width: 300),
|
constraints: const BoxConstraints.tightFor(width: 300),
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
|
asBarrier: true,
|
||||||
triggerActions: PopoverTriggerFlags.none,
|
triggerActions: PopoverTriggerFlags.none,
|
||||||
direction: PopoverDirection.bottomWithLeftAligned,
|
direction: PopoverDirection.bottomWithLeftAligned,
|
||||||
onClose: () => cellContainerNotifier.isFocus = false,
|
onClose: () => cellContainerNotifier.isFocus = false,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user