Here is my code
InkWell(
onTap: () {
Navigator.pop(context);
},
child: Align(
alignment: Alignment(1,-1),
child: CircleAvatar(
maxRadius: 20,
backgroundColor: Colors.transparent,
child: Image.asset('assets/cancel.png',height: 30,),
),
),
),
I got this
I want like this


If you are using
AlertDialogthen you can useiconandiconPaddingto keep thecloseimage top right.I have removed
CircleAvatarbecause it is used for user Profile Image. This Widget will give extra padding and I was not able to remove the padding. Please check if this solution works.