yschimke
12/13/2021, 8:07 AMcomposable(
Screens.LoginDialog.route
) {
AlertDialog(
title = {
then
positiveButton = {
Button(onClick = {
viewModel.continueLogin()
navController.popBackStack()
yschimke
12/13/2021, 8:28 AMNavGraphBuilder.dialog
from navigation-compose?yschimke
12/13/2021, 8:33 AMyschimke
12/13/2021, 9:19 AMif (dialogShown) {
AlertDialog(
Is that supported something to consider when it's above other content? Or is it different because these are full screen for Wear?John Nichol
12/13/2021, 12:18 PMyschimke
12/13/2021, 1:43 PMIan Lake
12/13/2021, 2:14 PMIan Lake
12/13/2021, 2:14 PMif (dialogShown)
code in the destination that wants to start the AlertDialogSteve Bower [G]
12/13/2021, 2:23 PMSteve Bower [G]
12/13/2021, 2:26 PMyschimke
12/13/2021, 3:23 PMnegativeButton = { Button(onClick = {
/* Do something e.g. navController.popBackStack()*/
}) { Text("No") } },
yschimke
12/13/2021, 3:28 PMif (dialog)
mode as non-wear does? Would the LaunchedEffect just trigger that state once (or when conditions require shwoing again), and the composeable would be outside, until close. DialogImpl is just a Column, so what makes it appear above content? Use in a Box, as the last item?Steve Bower [G]
12/13/2021, 3:49 PMSteve Bower [G]
12/13/2021, 3:54 PMyschimke
12/13/2021, 3:54 PMyschimke
12/13/2021, 3:55 PMSteve Bower [G]
12/13/2021, 4:05 PMyschimke
12/13/2021, 4:16 PMIan Lake
12/13/2021, 5:14 PMColumn
with predefined slots and a confusing name since it acts nothing like a Compose Dialog
, doesn't have anything that makes it actually full screen (being just a Column
, it only looks full screen if you put it as the same content within an already full screen Box
- put it in a Column
or put something after it, and it won't appear full screen above anything at all), and doesn't handle back at all (unlike Compose Dialog
).Ian Lake
12/13/2021, 5:15 PMColumn
in itIan Lake
12/13/2021, 5:28 PMSteve Bower [G]
12/13/2021, 6:06 PM