We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
FlyoutTarget( controller: menuController, child: Button( child: const Text('Options'), onPressed: () { menuController.showFlyout( builder: (context) { return MenuFlyout(items: [ MenuFlyoutItem( leading: const Icon(FluentIcons.share), text: const Text('Share'), onPressed: () { // Flyout.of(context).close }, ), ]); }, ); }, ), )
Here is an example of mine where the Flayout disappears when Share is clicked. But I didn't call Flyout.of(context).close.
Share
Flyout.of(context).close
Through the code, I saw that MenuFlyoutItem called Navigator.of(context).maybePop(); in onPressed when build
MenuFlyoutItem
Navigator.of(context).maybePop();
build
When using MenuFlyoutItem in DropDownButton, a closeAfterClick parameter controls whether to close FLayout.
Why don't we put closeAfterClick in the MenuFlyoutItem parameter?
The text was updated successfully, but these errors were encountered:
This also caused incorrect behavior when the MenuFlyoutSubItem parameter showBehavior was set to SubItemShowBehavior.press.
MenuFlyoutSubItem
showBehavior
SubItemShowBehavior.press
FLayout disappears after clicking MenuFlyoutSubItem.
FLayout
Sorry, something went wrong.
b42d51f
No branches or pull requests
Describe the bug
Here is an example of mine where the Flayout disappears when
Share
is clicked. But I didn't callFlyout.of(context).close
.Through the code, I saw that
MenuFlyoutItem
calledNavigator.of(context).maybePop();
in onPressed whenbuild
When using MenuFlyoutItem in DropDownButton, a closeAfterClick parameter controls whether to close FLayout.
Why don't we put closeAfterClick in the MenuFlyoutItem parameter?
The text was updated successfully, but these errors were encountered: