Colton Idle
02/04/2021, 5:45 PMFunctions which invoke @Composable functions must be marked with the @Composable annotation
colors = object : ButtonColors {
override fun backgroundColor(enabled: Boolean): Color =
JetsnackTheme.colors.color1
override fun contentColor(enabled: Boolean): Color =
JetsnackTheme.colors.color1
}
if I remove that block, then everything compiles fine.
Any ideas?Cyril Find
02/04/2021, 5:51 PM@Composable
Colton Idle
02/04/2021, 6:15 PMConflicting overloads: @Composable public open fun backgroundColor
=(Cyril Find
02/04/2021, 6:17 PMColton Idle
02/04/2021, 6:18 PMCyril Find
02/04/2021, 6:18 PMCyril Find
02/04/2021, 6:20 PMColton Idle
02/04/2021, 7:13 PMColton Idle
02/04/2021, 7:14 PMCyril Find
02/04/2021, 10:47 PMCyril Find
02/04/2021, 10:48 PMJan Bína
02/05/2021, 12:11 AMButtonDefaults
object, like this:
OutlinedButton(
colors = ButtonDefaults.buttonColors(
backgroundColor = Color.Black
...
)
)
Colton Idle
02/05/2021, 2:22 PMColton Idle
02/07/2021, 1:53 AM