-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
r: invalidIssue is closed as not validIssue is closed as not valid
Description
Steps to reproduce
MenuItemButton(
onPressed: () {},
leadingIcon: Icon(Icons.any),
child: null,
);
Null check operator used on a null value
Expected results
The child is nullable. If it is null, the MenuItemButton should be the same as IconButton.
Actual results
Null check operator used on a null value
Code sample
Code sample
MenuItemButton(
onPressed: () {},
leadingIcon: Icon(Icons.any),
child: null,
);Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.5, on Microsoft Windows [Version 10.0.22631.3447], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.4)
[✓] Android Studio (version 2022.1)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!Metadata
Metadata
Assignees
Labels
r: invalidIssue is closed as not validIssue is closed as not valid