How to set AlertDialog Background Color in Flutter

AlertDialog widget is one of the most useful widgets in Flutter. It helps developers to show important messages which may require acknowledgment. In this short Flutter tutorial, let’s learn how to change the AlertDialog background color. Adding AlertDialog is simple. You can make use of the backgroundColor property of AlertDialog and change the color. See…

How to change AlertDialog Border Radius in Flutter

Tweaking border-radius helps us to create rounded corners. UI elements with rounded corners always look beautiful. In this Flutter tutorial, let’s learn how to change the border radius of AlertDialog. Following is the default border radius of AlertDialog in Flutter. You can change the border radius using the shape property and the RoundedRectangleBorder class. See…