When a user post a comment without a media, the blank space remains. Which create a big blank space in between the post and the empty container, like below. How do I use conditional visibility to hide this blank space if an image is not uploaded?
Here is the custom function code - Below - but how can I achieve this.
bool hasUploadedMedia(String? mediaPath) {
/// MODIFY CODE ONLY BELOW THIS LINE
// remove the space between the post discription and media display, if post don't have a media.
return mediaPath != null && mediaPath.isNotEmpty;