Unverified Commit 28f2c96a authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

AlertDialog widget scrollable by default (#49848)

parent e4915445
......@@ -259,7 +259,7 @@ class AlertDialog extends StatelessWidget {
this.insetPadding = _defaultInsetPadding,
this.clipBehavior = Clip.none,
this.shape,
this.scrollable = false,
this.scrollable = true,
}) : assert(contentPadding != null),
assert(clipBehavior != null),
super(key: key);
......
......@@ -1100,7 +1100,6 @@ void main() {
color: Colors.green,
height: 1000,
),
scrollable: true,
);
await tester.pumpWidget(_buildAppWithDialog(dialog));
await tester.tap(find.text('X'));
......@@ -1120,7 +1119,6 @@ void main() {
color: Colors.orange,
height: 1000,
),
scrollable: true,
);
await tester.pumpWidget(_buildAppWithDialog(dialog));
await tester.tap(find.text('X'));
......@@ -1146,7 +1144,6 @@ void main() {
color: Colors.orange,
height: 400,
),
scrollable: true,
);
await tester.pumpWidget(_buildAppWithDialog(dialog));
await tester.tap(find.text('X'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment