Skip to content

Fullscreen dialogs

Philipp Niedermayer edited this page Jul 31, 2023 · 2 revisions

The primary use case for fullscreen dialogs are dialogs with a lot of content, or those that require keyboard input. In these cases, a basic dialog can quickly become confusing. This is especially true for Material 3 themes which have a lot of blank space around the dialogs. Fullscreen dialogs are described in the Material3 Design Guide.

A basic dialog can be turned into a fullscreen dialog by adding a single line:
API Reference

SimpleFormDialog.buildLogin("user", "password")
        .fullscreen() // <-- add this line
        .msg("Please login to continue")
        .show(this, "login_dialog_tag");
Basic dialog Fullscreen dialog
grafik grafik
grafik grafik