bod
05/28/2022, 7:28 AMJohn O'Reilly
05/28/2022, 8:18 AMyschimke
05/28/2022, 8:32 AMyschimke
05/28/2022, 8:33 AMyschimke
05/28/2022, 8:34 AMyschimke
05/28/2022, 8:35 AMbod
05/28/2022, 8:35 AMbod
05/28/2022, 10:49 AMbod
05/28/2022, 10:50 AMbod
05/28/2022, 10:50 AM@Preview(
widthDp = WEAR_PREVIEW_DEVICE_WIDTH_DP,
heightDp = WEAR_PREVIEW_DEVICE_HEIGHT_DP,
apiLevel = WEAR_PREVIEW_API_LEVEL,
uiMode = WEAR_PREVIEW_UI_MODE,
backgroundColor = WEAR_PREVIEW_BACKGROUND_COLOR_BLACK,
showBackground = WEAR_PREVIEW_SHOW_BACKGROUND
)
and if I remove the widthDp
/ heightDp
, the warning disappears, but the preview stays empty.
If I remove all parameters it stays empty as wellbod
05/28/2022, 10:52 AMText
) 😅John Nichol
05/28/2022, 1:21 PMdebugImplementation "androidx.compose.ui:ui-tooling:1.1.1"implementation "androidx.compose.ui:ui-tooling-preview:1.1.1"
bod
05/28/2022, 1:22 PMtooling
but not tooling-preview
! I'll try.bod
05/28/2022, 1:32 PMText
preview at least works. But not the complex ones, with the same message "Some issues were found when trying to render this preview." (but Issues Panel is empty)bod
05/28/2022, 1:33 PMbod
05/29/2022, 1:30 PMval viewModel: TheaterListViewModel = viewModel()
is the (or at least a) culprit 😅. I'll "hoist" it.yschimke
05/29/2022, 2:19 PMyschimke
05/29/2022, 2:20 PM