minikin / popover

Popover for Flutter. A popover is a transient view that appears above other content onscreen when you tap a control or in an area.
https://pub.dev/packages/popover
MIT License
166 stars 54 forks source link

[Bug]: #99

Open larry-cariq opened 2 months ago

larry-cariq commented 2 months ago

Is there an existing issue for this?

Current Behavior

The popover code documentation states:

/// The `onPop` called to veto attempts by the user to dismiss the popover.

https://github.com/minikin/popover/blob/8b3478b967088e44eada7157e5ad3904a0e2099f/lib/src/popover.dart#L68C1-L68C76 However, I don't see how a veto would work since the return type is void. Can you explain how I can veto the onPop?

Expected Behavior

Can return false to onPop so the popover is not dismissed.

What operating system are you seeing the problem on?

iOS

Relevant log output

No response

Anything else?

No response

Code of Conduct