-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add http cache support. #33
base: master
Are you sure you want to change the base?
✨ Add http cache support. #33
Conversation
final Directory dir = Directory( | ||
join((await getTemporaryDirectory()).path, cacheImageFolderName)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final Directory dir = Directory( | |
join((await getTemporaryDirectory()).path, cacheImageFolderName)); | |
final Directory dir = Directory( | |
join((await getTemporaryDirectory()).path, cacheImageFolderName), | |
); |
lib/src/_network_image_io.dart
Outdated
final Directory dir = Directory( | ||
join((await getTemporaryDirectory()).path, cacheImageFolderName)); | ||
// ignore: avoid_slow_async_io | ||
if (!await dir.exists()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the synchronized method?
if (!await dir.exists()) { | |
if (!dir.existsSync()) { |
lib/src/_network_image_io.dart
Outdated
} else { | ||
final File lockFile = _childFile(parentDir, '$rawFileName.lock'); | ||
// ignore: avoid_slow_async_io | ||
final bool exist = await lockFile.exists(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final bool exist = await lockFile.exists(); | |
final bool exist =lockFile.existsSync(); |
Remove cacheMaxAge field from ExtendedNetworkImageProvider.