File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ class AlertDialog extends StatelessWidget {
464
464
Color ? surfaceTintColor,
465
465
String ? semanticLabel,
466
466
EdgeInsets insetPadding,
467
- Clip clipBehavior,
467
+ Clip ? clipBehavior,
468
468
ShapeBorder ? shape,
469
469
AlignmentGeometry ? alignment,
470
470
bool scrollable,
Original file line number Diff line number Diff line change @@ -2894,6 +2894,12 @@ void main() {
2894
2894
const SimpleDialog simpleDialog = SimpleDialog ();
2895
2895
expect (simpleDialog.insetPadding, isNull);
2896
2896
});
2897
+
2898
+ testWidgets ('Can pass a null value to AlertDialog.adaptive clip behavior' , (WidgetTester tester) async {
2899
+ for (final Clip ? clipBehavior in < Clip ? > [null , ...Clip .values]) {
2900
+ AlertDialog .adaptive (clipBehavior: clipBehavior);
2901
+ }
2902
+ });
2897
2903
}
2898
2904
2899
2905
class _RestorableDialogTestWidget extends StatelessWidget {
You can’t perform that action at this time.
0 commit comments