mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
AlertDialog widget scrollable by default (#49848)
This commit is contained in:
parent
e491544588
commit
28f2c96a8a
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue