@@ -76,6 +76,10 @@ Future<String?> exportCode({
76
76
String ? commitHash,
77
77
bool exportAsDebug = false ,
78
78
}) async {
79
+ stdout.write ('Downloading code with the FlutterFlow CLI...\n ' );
80
+ stdout.write ('You are exporting project $projectId .\n ' );
81
+ stdout.write (
82
+ '${branchName != null ? 'Branch: $branchName ' : '' }${environmentName != null ? 'Environment: $environmentName ' : '' }${commitHash != null ? 'Commit: $commitHash ' : '' }\n ' );
79
83
if (exportAsDebug && exportAsModule) {
80
84
throw 'Cannot export as module and debug at the same time.' ;
81
85
}
@@ -106,6 +110,8 @@ Future<String?> exportCode({
106
110
extractArchiveToCurrentDirectory (projectFolder, destinationPath);
107
111
}
108
112
113
+ stdout.write ('Successfully downloaded the code!\n ' );
114
+
109
115
folderName = projectFolder.first.name;
110
116
111
117
final postCodeGenerationFutures = < Future > [
@@ -130,6 +136,7 @@ Future<String?> exportCode({
130
136
} finally {
131
137
client.close ();
132
138
}
139
+ stdout.write ('All done!\n ' );
133
140
return folderName;
134
141
}
135
142
@@ -261,6 +268,7 @@ Future _downloadAssets({
261
268
stderr.write ('Error downloading asset $path . This is probably fine.\n ' );
262
269
}
263
270
});
271
+ stdout.write ('Downloading assets...\n ' );
264
272
await Future .wait (futures);
265
273
}
266
274
@@ -279,7 +287,7 @@ Future _runFix({
279
287
final workingDirectory = unzipToParentFolder
280
288
? path_util.join (destinationPath, directory)
281
289
: destinationPath;
282
-
290
+ stdout. write ( 'Running flutter pub get... \n ' );
283
291
final pubGetResult = await Process .run (
284
292
'flutter' ,
285
293
['pub' , 'get' ],
@@ -293,6 +301,7 @@ Future _runFix({
293
301
'"flutter pub get" failed with code ${pubGetResult .exitCode }, stderr:\n ${pubGetResult .stderr }\n ' );
294
302
return ;
295
303
}
304
+ stdout.write ('Running dart fix...\n ' );
296
305
final fixDirectory = unzipToParentFolder ? directory : '' ;
297
306
final dartFixResult = await Process .run (
298
307
'dart' ,
0 commit comments