Moving to dev17 I used to draw a RadialGadient wi...
# compose
g
Moving to dev17 I used to draw a RadialGadient with:
Copy code
@Composable 
    override fun GradiantScreen() {
        var colors = listOf<Color>(nikolaColors.color2,
            nikolaColors.color1)
        var gradientBrush = RadialGradient(
            colors = colors,
            centerX = getScreenWidth().toFloat() / 2.0f,
            centerY = getScreenHeight().toFloat() / 2.0f,
            radius = getScreenHeight().toFloat() / 2.0f,
            tileMode = TileMode.Clamp
        )

        Box(
            Modifier
                .drawBackground(brush = gradientBrush)
                .fillMaxSize()
        )
    }
Unfortunately, drawBackground has been deprecated. What is the recommended way to do this with dev17?
m
Modifier.drawBackground
has been replaced by
Modifier.background
😁 1
g
Cool.
z
There’s a few of those, they’re documented in the release notes