Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zeqinjie committed Apr 29, 2024
1 parent 68d19f6 commit d895475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/menu_anchor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ class _MenuItemButtonState extends State<MenuItemButton> {
trailingIcon: widget.trailingIcon,
hasSubmenu: false,
overflowAxis: _anchor?._orientation ?? widget.overflowAxis,
child: widget.child ?? const SizedBox(),
child: widget.child ?? const SizedBox.shrink(),
),
);

Expand Down
2 changes: 1 addition & 1 deletion packages/flutter/test/material/menu_anchor_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,7 @@ void main() {
);
});

testWidgets('MenuItemButton was null check operator when it child is null', (WidgetTester tester) async {
testWidgets('MenuItemButton is null check operator when it child is null', (WidgetTester tester) async {
await tester.pumpWidget(
const MaterialApp(
home: Scaffold(
Expand Down

0 comments on commit d895475

Please sign in to comment.