1- // ignore_for_file: avoid_print
2-
31import 'dart:io' ;
42
53import 'package:dart_style/dart_style.dart' ;
4+ import 'package:flutter_gen_core/utils/version.dart' ;
65import 'package:path/path.dart' ;
76
87import 'generators/assets_generator.dart' ;
@@ -26,6 +25,7 @@ class FlutterGenerator {
2625 final String fontsName;
2726
2827 Future <void > build () async {
28+ stdout.writeln (flutterGenVersion);
2929 Config config;
3030 try {
3131 config = await loadPubspecConfig (pubspecFile);
@@ -55,7 +55,7 @@ class FlutterGenerator {
5555 final colors =
5656 File (normalize (join (pubspecFile.parent.path, output, colorsName)));
5757 writeAsString (generated, file: colors);
58- print ('Generated: ${colors .absolute .path }' );
58+ stdout. writeln ('Generated: ${colors .absolute .path }' );
5959 }
6060
6161 if (flutterGen.assets.enabled && flutter.assets.isNotEmpty) {
@@ -66,17 +66,17 @@ class FlutterGenerator {
6666 final assets =
6767 File (normalize (join (pubspecFile.parent.path, output, assetsName)));
6868 writeAsString (generated, file: assets);
69- print ('Generated: ${assets .absolute .path }' );
69+ stdout. writeln ('Generated: ${assets .absolute .path }' );
7070 }
7171
7272 if (flutterGen.fonts.enabled && flutter.fonts.isNotEmpty) {
7373 final generated = generateFonts (formatter, flutter.fonts);
7474 final fonts =
7575 File (normalize (join (pubspecFile.parent.path, output, fontsName)));
7676 writeAsString (generated, file: fonts);
77- print ('Generated: ${fonts .absolute .path }' );
77+ stdout. writeln ('Generated: ${fonts .absolute .path }' );
7878 }
7979
80- print ('FlutterGen finished.' );
80+ stdout. writeln ('FlutterGen finished.' );
8181 }
8282}
0 commit comments