Screen preview

Report a typo

Create a composable MainScreen with a username parameter of String type that can accept the name of the user. This composable must contain a composable that displays text on the screen for users with the following welcome message: Welcome to Hyperskill, $username!

Also, create a preview function with the name MainScreenPreview to show a preview of MainScreen composable. And don't forget about our app's theme, called HyperskillTheme.

Write a program in Kotlin
// put your code here
___

Create a free account to access the full topic