flyerhq / flutter_link_previewer

Customizable link and URL preview extracted from the provided text with the ability to render from the cache. Ideal for chat applications.
MIT License
72 stars 75 forks source link

how to store url preview in a cache memory , any reference ? #14

Closed abraraltaf92 closed 3 years ago

demchenkoalex commented 3 years ago

Hi @abraraltaf92 what do you mean by cache memory? We provide a callback which returns fetched preview data, what you do with it we don't care, but you need to provide saved preview data to the LinkPreview widget in order for the widget to work correctly. The most obvious way to store the data is local state, but it can be whatever you want.

abraraltaf92 commented 3 years ago

Gotcha! thanks