Vaibhav Jaiswal
05/13/2025, 8:23 AMcommonMain
source set
I have a Preview Composable in commonMain
but the preview window shows thisTimo Drick
05/13/2025, 8:52 AMTimo Drick
05/13/2025, 8:54 AMWout Werkman
05/13/2025, 9:13 AMTimo Drick
05/13/2025, 12:44 PMTimo Drick
05/13/2025, 12:45 PM:app:common_ui:jvmMain: Could not find androidx.compose.ui:ui-tooling-preview:.
Required by:
project :app:common_ui
Wout Werkman
05/13/2025, 12:46 PMcommon
code?Timo Drick
05/13/2025, 12:47 PMTimo Drick
05/13/2025, 12:47 PMTimo Drick
05/13/2025, 12:47 PMTimo Drick
05/13/2025, 12:50 PMVaibhav Jaiswal
05/13/2025, 1:38 PMVaibhav Jaiswal
05/13/2025, 1:39 PMimplementation(compose.components.uiToolingPreview)
Timo Drick
05/13/2025, 1:40 PMWout Werkman
05/13/2025, 1:44 PMTimo Drick
05/13/2025, 1:44 PMTimo Drick
05/13/2025, 2:24 PMpackage org.jetbrains.compose.ui.tooling.preview
public final annotation class Preview public constructor() : kotlin.Annotation {
}
and the androidx one:
package androidx.compose.ui.tooling.preview
annotation class Preview(
val name: String = "",
val group: String = "",
@IntRange(from = 1) val apiLevel: Int = -1,
// TODO(mount): Make this Dp when they are inline classes
val widthDp: Int = -1,
// TODO(mount): Make this Dp when they are inline classes
val heightDp: Int = -1,
val locale: String = "",
@FloatRange(from = 0.01) val fontScale: Float = 1f,
val showSystemUi: Boolean = false,
val showBackground: Boolean = false,
val backgroundColor: Long = 0,
@UiMode val uiMode: Int = 0,
@Device val device: String = Devices.DEFAULT,
@Wallpaper val wallpaper: Int = Wallpapers.NONE,
)
Wout Werkman
05/13/2025, 2:45 PMTimo Drick
05/13/2025, 2:55 PM