mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
## Description This PR change `MenuController.isOpen` to return false when the `MenuController` is not attached. Previously `MenuController.isOpen` thrown an assert error when the menu controller was unattached. With this PR, it is now possible to have some widgets outside the `MenuAnchor` body depending on the menu controller state. ## Related Issue Fixes [Querying isOpen state for a menu controller that was never attached throws an assertion error](https://github.com/flutter/flutter/issues/157329). ## Tests Adds 1 test.