How to show an error message in the UI in Flutter

A minimal example for a dialog or snackbar message

My friend asked me today how to show an error message in the UI when making an HTTP request. It was kind of hard to explain in a chat message, so this article is for him…and for you if you have the same question.

I won’t cover how to make the HTTP request, since I’ve written about that before in the…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store