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
The MenuAnchor widget incorrectly positions its menu overlay when used within routes managed by auto_route. Instead of opening below the anchor button, the menu opens above it, resulting in an incorrect vertical offset. This issue only occurs within the auto_route navigation context; when MenuAnchor is used outside of auto_route (e.g., in the main AppBar), the menu is positioned correctly.
Code sample
pubspec.yaml
name: nested_route_menu_anchordescription: "A new Flutter project."publish_to: 'none'# Remove this line if you wish to publish to pub.devversion: 1.0.0+1environment:
sdk: ^3.6.0dependencies:
flutter:
sdk: flutterauto_route: ^9.2.2cupertino_icons: ^1.0.8dev_dependencies:
flutter_test:
sdk: flutterauto_route_generator: ^9.0.0build_runner: ^2.4.14flutter_lints: ^5.0.0flutter:
uses-material-design: true
Flutter 3.27.1
Webapp
The MenuAnchor widget incorrectly positions its menu overlay when used within routes managed by auto_route. Instead of opening below the anchor button, the menu opens above it, resulting in an incorrect vertical offset. This issue only occurs within the auto_route navigation context; when MenuAnchor is used outside of auto_route (e.g., in the main AppBar), the menu is positioned correctly.
Code sample
pubspec.yaml
main.dart
This image depicts a Flutter screen containing three AnchorMenu widgets
auto_route
.auto_route
context.The image shows Menu 1, outside of auto_route, opening in the correct position below the button
Menus within auto_route open in the wrong position, overlapping the button
The text was updated successfully, but these errors were encountered: