forked from firka/flutter
add missing trailing commas in list/set/map literals (#102585)
This commit is contained in:
committed by
GitHub
parent
0b80f08cf0
commit
07f1c20474
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -40,7 +40,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
expandedHeight: 200.0,
|
||||
forceElevated: innerBoxIsScrolled,
|
||||
),
|
||||
)
|
||||
),
|
||||
];
|
||||
}, body: Builder(builder: (BuildContext context) {
|
||||
return CustomScrollView(
|
||||
|
||||
@@ -33,7 +33,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
),
|
||||
ColorBoxPage(
|
||||
key: PageStorageKey<String>('pageTwo'),
|
||||
)
|
||||
),
|
||||
];
|
||||
int currentTab = 0;
|
||||
final PageStorageBucket _bucket = PageStorageBucket();
|
||||
|
||||
@@ -44,7 +44,7 @@ class MyStatelessWidget extends StatelessWidget {
|
||||
),
|
||||
Center(
|
||||
child: Text('Third Page'),
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget>
|
||||
blurRadius: 10.0,
|
||||
spreadRadius: 3.0,
|
||||
offset: Offset(0, 6.0),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
end: BoxDecoration(
|
||||
|
||||
@@ -80,7 +80,7 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget>
|
||||
childCount: 5,
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user