<How to center Dialog into parent Window in compos...
# stackoverflow
u
How to center Dialog into parent Window in compose? I can get parent window size and position on the screen from WindowState and also dialog size and position and based on that get offset needed to be passed for dialog to be in window center. But if dialog has unspecified/dynamic size it doesn't work, same as when window aligned to center it has Alignment.Center instead of Offset.