@@ -167,13 +167,12 @@ class DiagramGenerator {
167167 filters.add (temporaryDirectory.absolute.path);
168168 late final List <String > filterArgs;
169169 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 > [];
177176 } else {
178177 filterArgs = < String > [];
179178 for (final String arg in filters) {
@@ -205,8 +204,8 @@ class DiagramGenerator {
205204 ) ||
206205 (entry['id' ] as String ) == device) {
207206 deviceId = entry['id' ] as String ;
208- deviceTargetPlatform =
209- (entry[ 'targetPlatform' ] as String ) .toLowerCase ();
207+ deviceTargetPlatform = (entry[ 'targetPlatform' ] as String )
208+ .toLowerCase ();
210209 return true ;
211210 }
212211 }
@@ -420,10 +419,9 @@ class DiagramGenerator {
420419 }
421420
422421 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 ();
427425
428426 if (errorFiles.length != 1 ) {
429427 throw GeneratorException ('Subprocess did not complete cleanly!' );
@@ -442,10 +440,9 @@ class DiagramGenerator {
442440 throw GeneratorException ('Failed with errors (see $errorsFileName ).' );
443441 }
444442
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 ();
449446
450447 // Collect all the animation frames that are in the metadata files so that
451448 // we can eliminate them from the other files that were transferred.
@@ -468,19 +465,18 @@ class DiagramGenerator {
468465 metadata.frameFiles.map ((File file) => file.absolute.path),
469466 );
470467 }
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 ();
484480 final List <File > convertedFiles = await _buildMoviesFromMetadata (
485481 metadataList,
486482 );
0 commit comments