Flutter Alert Dialogs

Nils Backe
2 min readJun 27, 2018
An example alert dialog. Retrieved from the material.io dialog page.

An alert dialog is a useful tool that alerts the app’s user. It is a pop up in the middle of the screen which places an overlay over the background. Most commonly, it is used to confirm one of the user’s potentially unrevertable actions. In this example, I will the setup to make one of these alert dialogs in the flutter framework.

First, you must call the showDialog() function, which alters the app’s state to show a dialog…

--

--