lab-64 / split-the-bill-client

Flutter App for easy and fast splitting up of receipts
4 stars 0 forks source link

No internet connection breaks UI #133

Closed Morvvvv closed 1 month ago

GR0ZA commented 1 month ago

If I'm not wrong it's caused by the AsyncValueWidget that shows an ErrorMessageWidget in case the value of a provider is AsyncError.

The UI doesn't only break on "No internet connection" but also on some other not expected errors (i. e. reloading a group_screen of a group that has been deleted in the meanwhile)

ErrorMessageWidget has to be modified. I think the best solution, if it's possible, would be to show a popup with "Something gone wrong" & error message and a button that takes the user back to the HomeScreen. Many of the errors will be gone by then. Some better error handling might be needed in particular cases (in a new issue)

Our endusers shouldn't really see the error message, in the future we will introduce some error codes and show them instead of the error messages.