File tree 4 files changed +6
-4
lines changed
4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
# https://dart.dev/guides/language/analysis-options
2
- # include: package:pedantic/analysis_options.yaml
3
2
include : package:flutter_lints/flutter.yaml
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
2
import 'dart:convert' ;
3
+ import 'dart:developer' ;
3
4
import 'dart:io' ;
4
5
5
6
import 'package:args/args.dart' ;
@@ -30,7 +31,7 @@ bool _isHelpCommand(List<String> args) {
30
31
31
32
void _printHelperDisplay () {
32
33
var parser = _generateArgParser (null );
33
- print (parser.usage);
34
+ log (parser.usage);
34
35
}
35
36
36
37
GenerateOptions _generateOption (List <String > args) {
@@ -290,9 +291,9 @@ class CodegenLoader extends AssetLoader{
290
291
// }
291
292
292
293
void printInfo (String info) {
293
- print ('\u 001b[32measy localization: $info \u 001b[0m' );
294
+ log ('\u 001b[32measy localization: $info \u 001b[0m' );
294
295
}
295
296
296
297
void printError (String error) {
297
- print ('\u 001b[31m[ERROR] easy localization: $error \u 001b[0m' );
298
+ log ('\u 001b[31m[ERROR] easy localization: $error \u 001b[0m' );
298
299
}
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ class EasyLocalization extends StatefulWidget {
65
65
/// Class loader for localization files.
66
66
/// You can use custom loaders from [Easy Localization Loader] (https://github.com/aissat/easy_localization_loader) or create your own class.
67
67
/// @Default value `const RootBundleAssetLoader()`
68
+ // ignore: prefer_typing_uninitialized_variables
68
69
final assetLoader;
69
70
70
71
/// Save locale in device storage.
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ class EasyLocalizationController extends ChangeNotifier {
14
14
Locale ? _fallbackLocale;
15
15
16
16
final Function (FlutterError e) onLoadError;
17
+ // ignore: prefer_typing_uninitialized_variables
17
18
final assetLoader;
18
19
final String path;
19
20
final bool useFallbackTranslations;
You can’t perform that action at this time.
0 commit comments