You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Before upgrading to a version with #714, I was successfully using a Flyout menu in conjunction with PaneItemAction. When I attempt to do this now, when attempting to open the flyout menu in the onTap callback of the PaneItemAction, the flyout controller throws an exception saying that it's not currently attached to a flyout target.
Essentially, edit the example app, editing main.dart as follows:
Add final testFlyoutController = FlyoutController(); to the _MyHomePageState class definition.
In the build method of the same class, instead of using footerItems: footerItems, we extend the footer items with a test PaneActionItem that demonstrates the problem:
Now if you click the pane action item, it throws an assertion:
_AssertionError ('package:fluent_ui/src/controls/flyouts/flyout.dart': Failed assertion: line 473 pos 12: 'isAttached': This controller must be attached to a FlyoutTarget)
Expected behavior
It should show a flyout (e.g. could be a popup menu with additional choices).
Additional context
I'm running Flutter 3.7.3 on stable channel in case it matters.
The text was updated successfully, but these errors were encountered:
Describe the bug
Before upgrading to a version with #714, I was successfully using a Flyout menu in conjunction with PaneItemAction. When I attempt to do this now, when attempting to open the flyout menu in the onTap callback of the PaneItemAction, the flyout controller throws an exception saying that it's not currently attached to a flyout target.
To Reproduce
An edit of the example app that reproduces this is here:
https://github.com/klondikedragon/fluent_ui/tree/reproduce-navbar-flyout-issue
Essentially, edit the example app, editing main.dart as follows:
final testFlyoutController = FlyoutController();
to the_MyHomePageState
class definition.footerItems: footerItems,
we extend the footer items with a testPaneActionItem
that demonstrates the problem:Now if you click the pane action item, it throws an assertion:
Expected behavior
It should show a flyout (e.g. could be a popup menu with additional choices).
Additional context
I'm running Flutter 3.7.3 on stable channel in case it matters.
The text was updated successfully, but these errors were encountered: