fix: popover onOpen not triggered by manual show

This commit is contained in:
Mathias Mogensen 2024-07-31 02:55:22 +02:00
parent fd3f850d63
commit 111989c96c

View File

@ -186,7 +186,10 @@ class FileBlockComponentState extends State<FileBlockComponent>
behavior: HitTestBehavior.translucent, behavior: HitTestBehavior.translucent,
onTap: url != null && url.isNotEmpty onTap: url != null && url.isNotEmpty
? () => afLaunchUrlString(url) ? () => afLaunchUrlString(url)
: controller.show, : () {
controller.show();
dropManagerState.add(FileBlockKeys.type);
},
child: DecoratedBox( child: DecoratedBox(
decoration: BoxDecoration( decoration: BoxDecoration(
color: isHovering color: isHovering