```
 updateDetails() async{  
           showDialog(   
              context: context,  
              builder: (BuildContext ctxt) {  
                return Container(  
                  child: AlertDialog(   
                    content: Row(   
                      children: [  
                        Container(  
                          child: Text("Updating profile..."),  
                        ),  
                        CircularProgressIndicator(),  
                      ],  
                    ),  
                  ),  
                );  
              });  
    await updateDetails();  
    //NOW I HAVE TO CLOSE THIS DIALOG  
    } 

```