Closed winterdl closed 3 years ago
Could not use in isolate, https://github.com/flutter/flutter/issues/47197, I think I should try another ways. If you wanna test, should add TestWidgetsFlutterBinding.ensureInitialized(), but the problem is cache access os functions, this is not allowed in isolate except main function.
I have a
Exception:
But when I comment added code, and not comment out 'dio_http_cache.dart' import statement, the exception still occurs, I comment the import statement and the added code, it runs as expected.