add missing trailing commas in list/set/map literals (#102585)

This commit is contained in:
Alexandre Ardhuin
2022-04-27 09:15:35 +02:00
committed by GitHub
parent 0b80f08cf0
commit 07f1c20474
271 changed files with 1236 additions and 1141 deletions

View File

@@ -54,7 +54,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
Padding(
padding: const EdgeInsets.only(top: 16),
child: Text('Result: ${snapshot.data}'),
)
),
];
} else if (snapshot.hasError) {
children = <Widget>[
@@ -66,7 +66,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
Padding(
padding: const EdgeInsets.only(top: 16),
child: Text('Error: ${snapshot.error}'),
)
),
];
} else {
children = const <Widget>[
@@ -78,7 +78,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
Padding(
padding: EdgeInsets.only(top: 16),
child: Text('Awaiting result...'),
)
),
];
}
return Center(

View File

@@ -85,7 +85,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
Padding(
padding: EdgeInsets.only(top: 16),
child: Text('Select a lot'),
)
),
];
break;
case ConnectionState.waiting:
@@ -98,7 +98,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
Padding(
padding: EdgeInsets.only(top: 16),
child: Text('Awaiting bids...'),
)
),
];
break;
case ConnectionState.active:
@@ -111,7 +111,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
Padding(
padding: const EdgeInsets.only(top: 16),
child: Text('\$${snapshot.data}'),
)
),
];
break;
case ConnectionState.done:
@@ -124,7 +124,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
Padding(
padding: const EdgeInsets.only(top: 16),
child: Text('\$${snapshot.data} (closed)'),
)
),
];
break;
}

View File

@@ -84,13 +84,13 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
TextField(
controller: billingAddress1,
autofillHints: const <String>[
AutofillHints.streetAddressLine1
AutofillHints.streetAddressLine1,
],
),
TextField(
controller: billingAddress2,
autofillHints: const <String>[
AutofillHints.streetAddressLine2
AutofillHints.streetAddressLine2,
],
),
],
@@ -109,7 +109,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
TextField(
controller: creditCardSecurityCode,
autofillHints: const <String>[
AutofillHints.creditCardSecurityCode
AutofillHints.creditCardSecurityCode,
],
),
],

View File

@@ -43,7 +43,7 @@ class _IVBuilderExampleState extends State<_IVBuilderExample> {
for (final Vector3 point in <Vector3>[
quad.point1,
quad.point2,
quad.point3
quad.point3,
]) {
if (point.x < xMin) {
xMin = point.x;

View File

@@ -40,7 +40,7 @@ class MyStatelessWidget extends StatelessWidget {
expandedHeight: 200.0,
forceElevated: innerBoxIsScrolled,
),
)
),
];
}, body: Builder(builder: (BuildContext context) {
return CustomScrollView(

View File

@@ -33,7 +33,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
ColorBoxPage(
key: PageStorageKey<String>('pageTwo'),
)
),
];
int currentTab = 0;
final PageStorageBucket _bucket = PageStorageBucket();

View File

@@ -44,7 +44,7 @@ class MyStatelessWidget extends StatelessWidget {
),
Center(
child: Text('Third Page'),
)
),
],
);
}

View File

@@ -43,7 +43,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget>
blurRadius: 10.0,
spreadRadius: 3.0,
offset: Offset(0, 6.0),
)
),
],
),
end: BoxDecoration(

View File

@@ -80,7 +80,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget>
childCount: 5,
),
),
)
),
]);
}
}