Skip to content

Commit a06a6e0

Browse files
committed
update
1 parent 6c2c06b commit a06a6e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/src/gen_screen_app.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ Future<void> genScreenApp(
9090
try {
9191
findings = await filePathStream1.toList();
9292
} catch (e) {
93+
spinner.stop();
9394
_print(
9495
printRed,
9596
'Failed to read file tree!',
96-
spinner,
9797
);
9898
exit(ExitCodes.FAILURE.code);
9999
}
@@ -118,10 +118,10 @@ Future<void> genScreenApp(
118118

119119
final data = result.unwrap();
120120
if (result.isErr) {
121+
spinner.stop();
121122
_print(
122123
printRed,
123124
' Failed to read template!',
124-
spinner,
125125
);
126126
exit(ExitCodes.FAILURE.code);
127127
}
@@ -144,6 +144,7 @@ Future<void> genScreenApp(
144144
data,
145145
);
146146
}
147+
spinner.stop();
147148
}
148149

149150
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

0 commit comments

Comments
 (0)