testWidgets('AlertDialog padding is correct when only title and actions are specified [textScaleFactor]=$textScaleFactor}',(WidgetTestertester)async{
testWidgets('AlertDialog padding is correct when only icon and actions are specified [textScaleFactor]=$textScaleFactor',(WidgetTestertester)async{
finalAlertDialogdialog=AlertDialog(
icon:icon,
actions:actions,
);
awaitopenDialog(tester,dialog,textScaleFactor);
expectTopEdgePadding(
tester,
finder:iconFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectLeftEdgePadding(
tester,
finder:iconFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectRightEdgePadding(
tester,
finder:iconFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectVerticalInnerPadding(
tester,
top:iconFinder,
bottom:actionsFinder,
value:24.0,
);
expectLeftEdgePadding(
tester,
finder:actionsFinder,
textScaleFactor:textScaleFactor,
unscaledValue:0.0,
);
expectRightEdgePadding(
tester,
finder:actionsFinder,
textScaleFactor:textScaleFactor,
unscaledValue:0.0,
);
expectBottomEdgePadding(
tester,
finder:actionsFinder,
textScaleFactor:textScaleFactor,
unscaledValue:0.0,
);
});
testWidgets('AlertDialog padding is correct when only icon, title and actions are specified [textScaleFactor]=$textScaleFactor',(WidgetTestertester)async{
finalAlertDialogdialog=AlertDialog(
icon:icon,
title:title,
actions:actions,
);
awaitopenDialog(tester,dialog,textScaleFactor);
expectTopEdgePadding(
tester,
finder:iconFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectLeftEdgePadding(
tester,
finder:iconFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectRightEdgePadding(
tester,
finder:iconFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectVerticalInnerPadding(
tester,
top:iconFinder,
bottom:titleFinder,
value:16.0,
);
expectLeftEdgePadding(
tester,
finder:titleFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectRightEdgePadding(
tester,
finder:titleFinder,
textScaleFactor:textScaleFactor,
unscaledValue:24.0,
);
expectVerticalInnerPadding(
tester,
top:titleFinder,
bottom:actionsFinder,
value:20.0,
);
expectLeftEdgePadding(
tester,
finder:actionsFinder,
textScaleFactor:textScaleFactor,
unscaledValue:0.0,
);
expectRightEdgePadding(
tester,
finder:actionsFinder,
textScaleFactor:textScaleFactor,
unscaledValue:0.0,
);
expectBottomEdgePadding(
tester,
finder:actionsFinder,
textScaleFactor:textScaleFactor,
unscaledValue:0.0,
);
});
for(finalboolisM3in<bool>[true,false]){
testWidgets('AlertDialog padding is correct when only icon, content and actions are specified [textScaleFactor]=$textScaleFactor [isM3]=$isM3',(WidgetTestertester)async{
testWidgets('AlertDialog padding is correct when only title and actions are specified [textScaleFactor]=$textScaleFactor',(WidgetTestertester)async{
finalAlertDialogdialog=AlertDialog(
title:title,
actions:actions,
...
...
@@ -928,7 +1130,7 @@ void main() {
);
});
testWidgets('AlertDialog padding is correct when only content and actions are specified [textScaleFactor]=$textScaleFactor}',(WidgetTestertester)async{
testWidgets('AlertDialog padding is correct when only content and actions are specified [textScaleFactor]=$textScaleFactor',(WidgetTestertester)async{
finalAlertDialogdialog=AlertDialog(
content:content,
actions:actions,
...
...
@@ -980,7 +1182,7 @@ void main() {
);
});
testWidgets('AlertDialog padding is correct when title, content, and actions are specified [textScaleFactor]=$textScaleFactor}',(WidgetTestertester)async{
testWidgets('AlertDialog padding is correct when title, content, and actions are specified [textScaleFactor]=$textScaleFactor',(WidgetTestertester)async{
finalAlertDialogdialog=AlertDialog(
title:title,
content:content,
...
...
@@ -1051,7 +1253,7 @@ void main() {
);
});
testWidgets('SimpleDialog padding is correct when only children are specified [textScaleFactor]=$textScaleFactor}',(WidgetTestertester)async{
testWidgets('SimpleDialog padding is correct when only children are specified [textScaleFactor]=$textScaleFactor',(WidgetTestertester)async{
finalSimpleDialogdialog=SimpleDialog(
children:children,
);
...
...
@@ -1084,7 +1286,7 @@ void main() {
);
});
testWidgets('SimpleDialog padding is correct when title and children are specified [textScaleFactor]=$textScaleFactor}',(WidgetTestertester)async{
testWidgets('SimpleDialog padding is correct when title and children are specified [textScaleFactor]=$textScaleFactor',(WidgetTestertester)async{