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

@@ -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()),
))
)),
],
),
),

View File

@@ -28,7 +28,7 @@ class OpacityPeepholePage extends StatelessWidget {
onPressed: () {
Navigator.pushNamed(context, variant.route);
},
)
),
],
),
);

View File

@@ -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,
)
),
],
);
}

View File

@@ -93,7 +93,7 @@ class _PostBackdropFilterPageState extends State<PostBackdropFilterPage> with Ti
],
),
),
)
),
],
),
],

View File

@@ -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,
]
);

View File

@@ -393,7 +393,7 @@ class PaletteTabView extends StatelessWidget {
600,
700,
800,
900
900,
];
static const List<int> accentKeys = <int>[100, 200, 400, 700];

View File

@@ -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;

View File

@@ -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),

View File

@@ -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),

View File

@@ -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),

View File

@@ -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),

View File

@@ -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),

View File

@@ -78,7 +78,7 @@ void main() {
'integer': 1234,
'string': 'This is a performance test.',
'float': 1.25,
'boolean': true
'boolean': true,
});
}
watch.stop();

View File

@@ -81,7 +81,7 @@ void main() {
'integer': 1234,
'string': 'This is a performance test.',
'float': 1.25,
'boolean': true
'boolean': true,
}));
}
watch.stop();

View File

@@ -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),
)
),
],
),
),

View File

@@ -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