AlexGladkov / Odyssey

Odyssey it's a declarative multiplatform navigation library for Multiplatform Compose

Home Page:https://youtube.com/c/MobileDeveloper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dialog

StenleyDuFoster opened this issue · comments

Hello, do you plan to add navigation support to dialogs?

commented

Done
You can use

val alertConfiguration = AlertConfiguration(maxHeight = 0.7f, maxWidth = 0.8f, cornerRadius = 4)
modalController.present(alertConfiguration) {
        AlertDialogScreen {
            modalController.popBackStack()
        }
}

To create AlertDialog, or look into example