dio
dio copied to clipboard
dio Options conflict with flutter secure storage
hello this is the error
'Options' isn't a function.
The name 'Options' is defined in the libraries 'package:dio/src/options.dart (via package:dio/dio.dart)' and 'package:flutter_secure_storage/flutter_secure_storage.dart'.
i can`t use those package together thank you
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.
Same issue
Changing the import, it worked for me
import 'package:dio/dio.dart' as Dio;
I changed the latter to:
import 'package:flutter_secure_storage/flutter_secure_storage.dart' as Storage;
And used it as:
new Storage.FlutterSecureStorage().write(key: 'jwt', value: model.jwt);