Skip to content
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

Option to cache loaded flag #38

Open
sunarya-thito opened this issue Aug 1, 2024 · 1 comment
Open

Option to cache loaded flag #38

sunarya-thito opened this issue Aug 1, 2024 · 1 comment

Comments

@sunarya-thito
Copy link

Currently, the widget will always request the flag image from assets directly on widget build. This is not optimal if you put the widget inside ListView where widgets constantly being disposed and rebuilt on user scroll. The widget should cache loaded image and use the cached image where possible to avoid frequent asset loading. This is a very serious problem for flutter web apps where asset loading will create a fetch request directly, and with this widget, it can cause accidental request spam.

@arturograu
Copy link
Owner

Hi @sunarya-thito ! That would be a significant improvement for the package. Unfortunately, I don't have the time to work on these kind of enhancements right now. If I find time in the future I can explore the issue you are mentioning. However, please feel free to submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants