@@ -245,7 +245,7 @@ Future<void> _generateTranslationsFromWatch({
245245 required String fileName,
246246}) async {
247247 final stopwatch = Stopwatch ()..start ();
248- _printDynamicLastLine ('\r [$currentTime ] $_YELLOW #$counter Generating...' );
248+ _printDynamicLastLine ('\r [$currentTime ] $_yellow #$counter Generating...' );
249249
250250 final newFiles = inputDirectory
251251 .listSync (recursive: true )
@@ -270,17 +270,17 @@ Future<void> _generateTranslationsFromWatch({
270270 success = false ;
271271 log.error ('\n ${e .toString ()}' );
272272 _printDynamicLastLine (
273- '\r [$currentTime ] $_RED #$counter Error ${stopwatch .elapsedSeconds }' ,
273+ '\r [$currentTime ] $_red #$counter Error ${stopwatch .elapsedSeconds }' ,
274274 );
275275 }
276276
277277 if (success) {
278278 if (counter == 1 ) {
279279 _printDynamicLastLine (
280- '\r [$currentTime ] $_GREEN #1 Init ${stopwatch .elapsedSeconds }' );
280+ '\r [$currentTime ] $_green #1 Init ${stopwatch .elapsedSeconds }' );
281281 } else {
282282 _printDynamicLastLine (
283- '\r [$currentTime ] $_GREEN #$counter Update $fileName ${stopwatch .elapsedSeconds }' ,
283+ '\r [$currentTime ] $_green #$counter Update $fileName ${stopwatch .elapsedSeconds }' ,
284284 );
285285 }
286286 }
@@ -390,7 +390,7 @@ Future<void> generateTranslations({
390390 log.verbose ('' );
391391 }
392392 log.info (
393- '${_GREEN }Translations generated successfully. ${stopwatch .elapsedSeconds }$_RESET ' );
393+ '${_green }Translations generated successfully. ${stopwatch .elapsedSeconds }$_reset ' );
394394 }
395395}
396396
@@ -411,17 +411,17 @@ String? _lastPrint;
411411
412412void _printDynamicLastLine (String output) {
413413 if (_lastPrint == null ) {
414- stdout.write ('\r $output $_RESET ' );
414+ stdout.write ('\r $output $_reset ' );
415415 } else {
416- stdout.write ('\r ${output .padRight (_lastPrint !.length , ' ' )}$_RESET ' );
416+ stdout.write ('\r ${output .padRight (_lastPrint !.length , ' ' )}$_reset ' );
417417 }
418418 _lastPrint = output;
419419}
420420
421- const _GREEN = '\x 1B[32m' ;
422- const _YELLOW = '\x 1B[33m' ;
423- const _RED = '\x 1B[31m' ;
424- const _RESET = '\x 1B[0m' ;
421+ const _green = '\x 1B[32m' ;
422+ const _yellow = '\x 1B[33m' ;
423+ const _red = '\x 1B[31m' ;
424+ const _reset = '\x 1B[0m' ;
425425
426426extension on Stopwatch {
427427 String get elapsedSeconds {
0 commit comments