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

cacheWidth and cacheHeigth support #22

Open
Gilianp opened this issue Aug 29, 2024 · 1 comment
Open

cacheWidth and cacheHeigth support #22

Gilianp opened this issue Aug 29, 2024 · 1 comment

Comments

@Gilianp
Copy link

Gilianp commented Aug 29, 2024

Can you provide support for cacheWidth and cacheHeigth like flutter image widgets? The goal is to improve performance

@imsamgarg
Copy link
Owner

You can do the same by wrapping the FirebaseImageProvider with ResizeImage (provided by flutter lib).

return Image(
  image = ResizeImage(
    FirebaseImageProvider(FirebaseUrl("url")),
    height: 200, // == cacheHeight
    width: 200, // == cacheWidth
  ),
);

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