When I create this function to return an EdgeInsets padding, it causes the widget that has the padding to disappear. I have checked the returned value and it is
EdgeInsets