Jetpack Compose Primer 路 Create a Compose Activity | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3604589-jetpack-compose-primer/lessons/3

Looks like CraneWrapper has been removed from Jetpack Compose. Is there some equivalent?

I鈥檒l try to remember to post back here if I find some answer. For now, I am trying to join the Kotlin Slack (https://kotlinlang.slack.com/) to post on the #compose channel.

According to the folks from the Slack channel, CraneWrapper can be omitted now. Also, there is some NullPointerException that occurs unless you use MaterialDemoActivity as the base class for HelloActivity.

class HelloActivity : MaterialDemoActivity() {
    override fun materialContent() {
        HelloDemo()
    }
}

@iheart2code Thank you for sharing your solution - much appreciated! :]