Enable avoid_redundant_argument_values lint (#91409)
This commit is contained in:
@@ -65,7 +65,7 @@ void main() {
|
||||
textDirection: TextDirection.ltr,
|
||||
);
|
||||
table.add(RenderPadding(child: paragraph, padding: const EdgeInsets.only(top: 20.0)));
|
||||
final RenderFlex row = RenderFlex(direction: Axis.horizontal, textDirection: TextDirection.ltr);
|
||||
final RenderFlex row = RenderFlex(textDirection: TextDirection.ltr);
|
||||
row.add(RenderSolidColorBox(const Color(0xFFFFCCCC), desiredSize: const Size(80.0, 60.0)));
|
||||
row.add(RenderSolidColorBox(const Color(0xFFCCFFCC), desiredSize: const Size(64.0, 60.0)));
|
||||
row.add(RenderSolidColorBox(const Color(0xFFCCCCFF), desiredSize: const Size(160.0, 60.0)));
|
||||
|
||||
@@ -13,7 +13,6 @@ void main() {
|
||||
// The root of our render tree is a RenderPositionedBox, which centers its
|
||||
// child both vertically and horizontally.
|
||||
root: RenderPositionedBox(
|
||||
alignment: Alignment.center,
|
||||
// We use a RenderParagraph to display the text 'Hello, world.' without
|
||||
// any explicit styling.
|
||||
child: RenderParagraph(
|
||||
|
||||
@@ -39,7 +39,6 @@ void main() {
|
||||
);
|
||||
// Finally, we center the spinning green square...
|
||||
final RenderBox root = RenderPositionedBox(
|
||||
alignment: Alignment.center,
|
||||
child: spin,
|
||||
);
|
||||
// and attach it to the window.
|
||||
|
||||
Reference in New Issue
Block a user