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,
onTap: url != null && url.isNotEmpty
? () => afLaunchUrlString(url)
: controller.show,
: () {
controller.show();
dropManagerState.add(FileBlockKeys.type);
},
child: DecoratedBox(
decoration: BoxDecoration(
color: isHovering