sur950 / any_link_preview

A flutter Plugin/Package to show the preview of any web link that starts with HTTP/HTTPS. Mostly useful for application that had chat.
MIT License
72 stars 72 forks source link

Feature Request: onError callback #53

Closed osheron closed 6 months ago

osheron commented 1 year ago

I think a decent amount of my personal friction with using the library could be removed if the onus of error handling was moved onto the consuming developer from the library itself.

Proposed change:

sur950 commented 1 year ago

Hi @osheron

I didn't get your proposed solution. If you are asking to add onError Widget, It's already available. If you are asking to remove the other props and use onError Widget for all sorts of errors including caught & uncaught, That makes sense.

sur950 commented 6 months ago

Since there's no response after the last query, I am closing this request. Feel free to open he ticket or new one if you face some issue. Thanks!

Osebest commented 3 months ago

I am having an issue here as well, I have seen there is a Error widget, but I am in need of a "onError" function, that allows me to write a check in case the links fails.