Closed
Description
The OutlinedButton.styleFrom
is declared as:
flutter/packages/flutter/lib/src/material/outlined_button.dart
Lines 142 to 175 in ccfd14b
where disabledMouseCursor
and enabledMouseCursor
are nullable, and have no restriction around it.
But later it is used as:
flutter/packages/flutter/lib/src/material/outlined_button.dart
Lines 189 to 191 in ccfd14b
Both has !
but the condition only excluded the case that both values are null
.
So if only one value is given, the code gonna throw.
Metadata
Metadata
Assignees
Labels
Error messages from the Flutter frameworkSupport for Dart's null safety featureflutter/packages/flutter/material repository.Found to occur in 3.3Found to occur in 3.7flutter/packages/flutter repository. See also f: labels.The issue has been confirmed reproducible and is ready to work onIssue is closed as already fixed in a newer version
Type
Projects
Status
Done (PR merged)