@@ -167,13 +167,12 @@ class DiagramGenerator {
167
167
filters.add (temporaryDirectory.absolute.path);
168
168
late final List <String > filterArgs;
169
169
if (deviceTargetPlatform.startsWith ('android' )) {
170
- filterArgs =
171
- filters.isNotEmpty
172
- ? < String > [
173
- '--route' ,
174
- 'args:${Uri .encodeComponent (filters .join (' ' ))}' ,
175
- ]
176
- : < String > [];
170
+ filterArgs = filters.isNotEmpty
171
+ ? < String > [
172
+ '--route' ,
173
+ 'args:${Uri .encodeComponent (filters .join (' ' ))}' ,
174
+ ]
175
+ : < String > [];
177
176
} else {
178
177
filterArgs = < String > [];
179
178
for (final String arg in filters) {
@@ -205,8 +204,8 @@ class DiagramGenerator {
205
204
) ||
206
205
(entry['id' ] as String ) == device) {
207
206
deviceId = entry['id' ] as String ;
208
- deviceTargetPlatform =
209
- (entry[ 'targetPlatform' ] as String ) .toLowerCase ();
207
+ deviceTargetPlatform = (entry[ 'targetPlatform' ] as String )
208
+ .toLowerCase ();
210
209
return true ;
211
210
}
212
211
}
@@ -420,10 +419,9 @@ class DiagramGenerator {
420
419
}
421
420
422
421
Future <List <File >> _combineAnimations (List <File > inputFiles) async {
423
- final List <File > errorFiles =
424
- inputFiles
425
- .where ((File input) => path.basename (input.path) == 'error.log' )
426
- .toList ();
422
+ final List <File > errorFiles = inputFiles
423
+ .where ((File input) => path.basename (input.path) == 'error.log' )
424
+ .toList ();
427
425
428
426
if (errorFiles.length != 1 ) {
429
427
throw GeneratorException ('Subprocess did not complete cleanly!' );
@@ -442,10 +440,9 @@ class DiagramGenerator {
442
440
throw GeneratorException ('Failed with errors (see $errorsFileName ).' );
443
441
}
444
442
445
- final List <File > metadataFiles =
446
- inputFiles
447
- .where ((File input) => path.extension (input.path) == '.json' )
448
- .toList ();
443
+ final List <File > metadataFiles = inputFiles
444
+ .where ((File input) => path.extension (input.path) == '.json' )
445
+ .toList ();
449
446
450
447
// Collect all the animation frames that are in the metadata files so that
451
448
// we can eliminate them from the other files that were transferred.
@@ -468,19 +465,18 @@ class DiagramGenerator {
468
465
metadata.frameFiles.map ((File file) => file.absolute.path),
469
466
);
470
467
}
471
- final List <File > staticFiles =
472
- inputFiles.where ((File input) {
473
- if (! input.isAbsolute) {
474
- input = File (
475
- path.normalize (
476
- path.join (temporaryDirectory.absolute.path, input.path),
477
- ),
478
- );
479
- } else {
480
- input = File (path.normalize (input.path));
481
- }
482
- return ! animationFiles.contains (input.absolute.path);
483
- }).toList ();
468
+ final List <File > staticFiles = inputFiles.where ((File input) {
469
+ if (! input.isAbsolute) {
470
+ input = File (
471
+ path.normalize (
472
+ path.join (temporaryDirectory.absolute.path, input.path),
473
+ ),
474
+ );
475
+ } else {
476
+ input = File (path.normalize (input.path));
477
+ }
478
+ return ! animationFiles.contains (input.absolute.path);
479
+ }).toList ();
484
480
final List <File > convertedFiles = await _buildMoviesFromMetadata (
485
481
metadataList,
486
482
);
0 commit comments