marcos930807 / awesomeDialogs

A new Flutter package project for simple a awesome dialogs
Other
340 stars 110 forks source link

When setting DialogType.noHeader, it is not in a centered state #127

Open shinexoh opened 1 year ago

shinexoh commented 1 year ago

When I set up DialogType.noHeader, I found that it is not in a screen centered state. There are still some spaces left at the top of the dialog for the header icon, although I have already set DialogType.noHeader, which can be seen after filling the body

微信图片_20230502200023

egonbeermat commented 9 months ago

I have noticed the same thing too. I think it is down to the padding in vertical_stack_header_dialog.dart:68 , where top is set to 65, which I think is to leave room for the header, added in the stack. Perhaps this should be conditional:

top: header != null ? 65 : 10