Closed osheron closed 6 months 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.
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!
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.
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:
Widget Function(Context, Metadata, Error) onError;
, that returns a widget to be displayed in the event of a caught exception. -- Personally, I think this would trump the need for errorImage, errorBody, errorTitle, and errorWidget, but I recognize that backwards compatibility wins.