popover
popover copied to clipboard
Popover doesn't show up from AppBar
when the showPopOver
method is called from an IconButton
placed in the AppBar
the popover doesn't show up, my app bar looks like this:
AppBar(
title: const Text('Popover Example'),
actions: [
IconButton(
icon: Icon(Icons.sort),
onPressed: () {
showPopover(
context: context,
bodyBuilder: (context) => const ListItems(),
onPop: () => print('Popover was popped!'),
direction: PopoverDirection.top,
width: 200,
height: 400,
arrowHeight: 15,
arrowWidth: 30,
);
},
),
],
)
@murad1981 Any Solution for this?
@murad1981 Any update?
@murad1981 It worked when wrapped with Builder. Try wrapping your widget with a Builder.
+1
Please, see this discussion.