In many of my projects, I use a simple alert dialog that supports:
- Adaptive mode (Material / Cupertino)
- Default and cancel actions
- Destructive UI style
- Dismissible mode
Super useful for Yes/No, Cancel/Delete scenarios. 👍
Here's a gist with the source code:
Feel free to tweak and reuse it in your projects. 🙂
Happy coding!