add missing trailing commas in list/set/map literals (#102585)
This commit is contained in:
committed by
GitHub
parent
0b80f08cf0
commit
07f1c20474
@@ -33,7 +33,7 @@ class _AnimatedComplexOpacityState extends State<AnimatedComplexOpacity> with Si
|
||||
for (int i = 0; i < 20; i++)
|
||||
FadeTransition(opacity: animation, child: Center(
|
||||
child: Transform.scale(scale: 1.01, child: const ModeratelyComplexWidget()),
|
||||
))
|
||||
)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -28,7 +28,7 @@ class OpacityPeepholePage extends StatelessWidget {
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, variant.route);
|
||||
},
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -62,7 +62,7 @@ class ListItem extends StatelessWidget {
|
||||
_buildUserInfo(),
|
||||
const SizedBox(
|
||||
height: 10,
|
||||
)
|
||||
),
|
||||
];
|
||||
if (index % 3 != 0) {
|
||||
contents.add(_buildImageContent());
|
||||
@@ -140,7 +140,7 @@ class ListItem extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(
|
||||
width: 15,
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ class _PostBackdropFilterPageState extends State<PostBackdropFilterPage> with Ti
|
||||
],
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
@@ -67,7 +67,7 @@ final GetStackPointerCallback getStackPointer = () {
|
||||
// "mov r0, sp" in machine code: 0D00A0E1.
|
||||
0x0d, 0x00, 0xa0, 0xe1,
|
||||
// "bx lr" in machine code: 1EFF2FE1.
|
||||
0x1e, 0xff, 0x2f, 0xe1
|
||||
0x1e, 0xff, 0x2f, 0xe1,
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
@@ -393,7 +393,7 @@ class PaletteTabView extends StatelessWidget {
|
||||
600,
|
||||
700,
|
||||
800,
|
||||
900
|
||||
900,
|
||||
];
|
||||
static const List<int> accentKeys = <int>[100, 200, 400, 700];
|
||||
|
||||
|
||||
@@ -45,8 +45,8 @@ void main() {
|
||||
position: location + movePerRun * t.toDouble(),
|
||||
pointer: 1,
|
||||
delta: movePerRun,
|
||||
)
|
||||
])
|
||||
),
|
||||
]),
|
||||
],
|
||||
PointerEventRecord(totalTime, <PointerEvent>[
|
||||
PointerUpEvent(
|
||||
@@ -54,8 +54,8 @@ void main() {
|
||||
timeStamp: totalTime - const Duration(milliseconds: 1),
|
||||
position: location + movePerRun * moveEventNumber.toDouble(),
|
||||
pointer: 1,
|
||||
)
|
||||
])
|
||||
),
|
||||
]),
|
||||
];
|
||||
|
||||
binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.benchmarkLive;
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
'opacity_peephole_col_of_rows_perf',
|
||||
<ScrollableButtonRoute>[
|
||||
ScrollableButtonRoute(kScrollableName, kOpacityPeepholeRouteName),
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeOpacityOfColOfRowsRouteName)
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeOpacityOfColOfRowsRouteName),
|
||||
],
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
duration: const Duration(seconds: 10),
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
'opacity_peephole_fade_transition_text_perf',
|
||||
<ScrollableButtonRoute>[
|
||||
ScrollableButtonRoute(kScrollableName, kOpacityPeepholeRouteName),
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeFadeTransitionTextRouteName)
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeFadeTransitionTextRouteName),
|
||||
],
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
duration: const Duration(seconds: 10),
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
'opacity_peephole_grid_of_opacity_perf',
|
||||
<ScrollableButtonRoute>[
|
||||
ScrollableButtonRoute(kScrollableName, kOpacityPeepholeRouteName),
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeGridOfOpacityRouteName)
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeGridOfOpacityRouteName),
|
||||
],
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
duration: const Duration(seconds: 10),
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
'opacity_peephole_one_rect_perf',
|
||||
<ScrollableButtonRoute>[
|
||||
ScrollableButtonRoute(kScrollableName, kOpacityPeepholeRouteName),
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeOneRectRouteName)
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeOneRectRouteName),
|
||||
],
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
duration: const Duration(seconds: 10),
|
||||
|
||||
@@ -11,7 +11,7 @@ void main() {
|
||||
'opacity_peephole_opacity_of_grid_perf',
|
||||
<ScrollableButtonRoute>[
|
||||
ScrollableButtonRoute(kScrollableName, kOpacityPeepholeRouteName),
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeOpacityOfGridRouteName)
|
||||
ScrollableButtonRoute(kOpacityScrollableName, kOpacityPeepholeOpacityOfGridRouteName),
|
||||
],
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
duration: const Duration(seconds: 10),
|
||||
|
||||
@@ -78,7 +78,7 @@ void main() {
|
||||
'integer': 1234,
|
||||
'string': 'This is a performance test.',
|
||||
'float': 1.25,
|
||||
'boolean': true
|
||||
'boolean': true,
|
||||
});
|
||||
}
|
||||
watch.stop();
|
||||
|
||||
@@ -81,7 +81,7 @@ void main() {
|
||||
'integer': 1234,
|
||||
'string': 'This is a performance test.',
|
||||
'float': 1.25,
|
||||
'boolean': true
|
||||
'boolean': true,
|
||||
}));
|
||||
}
|
||||
watch.stop();
|
||||
|
||||
@@ -160,7 +160,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
0.0), // 10% of the width, so there are ten blinds.
|
||||
colors: <Color>[
|
||||
Color(0xffee0000),
|
||||
Color(0xffeeee00)
|
||||
Color(0xffeeee00),
|
||||
], // red to yellow
|
||||
tileMode: TileMode
|
||||
.repeated, // repeats the gradient over the canvas
|
||||
@@ -172,7 +172,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
CustomPaint(
|
||||
painter: Sky(),
|
||||
size: const Size(200.0, 36.0),
|
||||
)
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -97,7 +97,7 @@ abstract class StockStrings {
|
||||
static const List<Locale> supportedLocales = <Locale>[
|
||||
Locale('en'),
|
||||
Locale('en', 'US'),
|
||||
Locale('es')
|
||||
Locale('es'),
|
||||
];
|
||||
|
||||
/// Title for the Stocks application
|
||||
|
||||
Reference in New Issue
Block a user