Closed aideric closed 3 years ago
If you are using File
with this library , you should use the type exported by the package. If you want to use File
with this package and with some some custom code, for which you need to import dart:io
, you could import the libraries using aliases
import 'dart:io' as io;
Or something like this with flutter_cache_manager
Faced with the same issue with library pdf_flutter. It has 2 imports:
import 'dart:io';
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
And flutter_cache_manager overrides dart:io. Could you please fix it?
🔙 Regression
File in flutter_cache_manage conflict with File in dart.io
Old (and correct) behavior
can import both import 'dart:io'; import 'package:flutter_cache_manager/flutter_cache_manager.dart'; in same file
Current behavior
seems File in 'dart:io' override by File in flutter_cache_manager
Reproduction steps
Configuration
Version: 3.1.0
Platform: