fix: cannot open popovers (#3410)

This commit is contained in:
Richard Shiue 2023-09-15 19:01:22 +08:00 committed by GitHub
parent 3426e5b53e
commit 1e001640aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,9 +202,9 @@ class PopoverState extends State<Popover> {
showOverlay(); showOverlay();
} }
}, },
child: GestureDetector( child: Listener(
child: widget.child, child: widget.child,
onTap: () { onPointerDown: (_) {
if (widget.triggerActions & PopoverTriggerFlags.click != 0) { if (widget.triggerActions & PopoverTriggerFlags.click != 0) {
showOverlay(); showOverlay();
} }