Created
October 29, 2022 11:56
-
-
Save pranaypatel512/17cc126fdbca5a66a13f674ce3106a01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step 1: Create | |
@Preview(uiMode = Configuration.UI_MODE_NIGHT_YES) | |
@OtherMultipreview1 | |
@OtherMultipreview2 | |
@DevicePreviews | |
annotation class AllPreviews | |
// Step 2: User AllPreviews | |
@AllPreviews | |
@Composable | |
fun WelcomeScreenPreview() { | |
MyAppTheme { | |
Surface { | |
WelcomeScreen() | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment