Colton Idle
01/12/2024, 4:02 PMColton Idle
01/12/2024, 4:03 PMval text = stateHolder.myFlow.collectAsState(initial = null).value.toString()
AlertDialog(
onDismissRequest = dismiss,
icon = { Icon(Icons.Filled.Settings, contentDescription = null) },
title = { Text(text = "Test") },
text = {
Log.e("ABC", text)
Text(
text = text
)
},
confirmButton = {},
dismissButton = {})
I end up with only one line going across my dialog. But logcat outputs
null
Some really long string that is the actual output of the flowable and I can see the whole thing in logcat but not the dialog
Colton Idle
01/12/2024, 4:05 PMtext = {
Log.e("ABC", text)
Text(
text = "blah".repeat(30)
)
},
then my dialog will show like 3 lines.
Pretty confused. my only hunch is that technically in my actual code, (as seen in logcat too) is that the initial value is null, and so the Dialog will not change it's height?Zach Klippenstein (he/him) [MOD]
01/12/2024, 4:39 PMAtul Gupta
01/12/2024, 5:46 PMSideEffect { Log.e("ABC", text) }
Colton Idle
01/12/2024, 6:07 PMZoltan Demant
01/13/2024, 10:47 AMAlertDialogFlowRow
works, should probably be migrated to FlowRow
?