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

Memory-based cache for Web platform #36

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Wauplin
Copy link

@Wauplin Wauplin commented Mar 18, 2021

Hi there !

First of all, thanks a lot for this convenient library ! I started to use it for a hobby project of mine and it helped me to integrate Firebase Image without having to handle urls by manually so thanks for that 🙂

The project I'm working on is quite simple but I needed to make it work for the Web platform as well. I implemented a basic version of the FirebaseImageCacheManager that works with a simple Map structure in memory if sqflite library is not installed.
Of course it comes with limitations (no persistence, no shared memory between tabs) but it's enough for my use-case. I created this PR in case it can help other people.

It is currently in draft mode, please tell me if you are interested in merging it. I have changed some naming and added an abstract class. I can adapt some code if required.

@andressilvac andressilvac mentioned this pull request Jan 30, 2022
@aurangzaibsiddiqui
Copy link

Hi there !

First of all, thanks a lot for this convenient library ! I started to use it for a hobby project of mine and it helped me to integrate Firebase Image without having to handle urls by manually so thanks for that 🙂

The project I'm working on is quite simple but I needed to make it work for the Web platform as well. I implemented a basic version of the FirebaseImageCacheManager that works with a simple Map structure in memory if sqflite library is not installed. Of course it comes with limitations (no persistence, no shared memory between tabs) but it's enough for my use-case. I created this PR in case it can help other people.

It is currently in draft mode, please tell me if you are interested in merging it. I have changed some naming and added an abstract class. I can adapt some code if required.

Hey! I am still a beginner in flutter so can really use your help! If your solution works, I will be extremely grateful!
So basically I am using the following version of firebase:
firebase_image: ^1.0.1

But as you would know it doesn't work on Web but works perfectly on iOS and Android. How can I use your solution in my app to fix that? Do I have to pull a repository? If yes, how to do it? Thanks in advance!

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

Successfully merging this pull request may close these issues.

2 participants