Skip to content

Commit 332be1c

Browse files
HiDaN4haarts
authored andcommitted
Use dart.io condition to fix the import for mobile flutter apps
1 parent a127c25 commit 332be1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/logger.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export 'src/printers/simple_printer.dart';
1717
export 'src/printers/hybrid_printer.dart';
1818
export 'src/printers/prefix_printer.dart';
1919

20-
export 'src/log_output.dart'
21-
if (dart.library.io) 'src/outputs/file_output.dart';
20+
export 'src/log_output.dart' if (dart.io) 'src/outputs/file_output.dart';
2221

2322
export 'src/log_filter.dart';
2423
export 'src/log_output.dart';

0 commit comments

Comments
 (0)