Created
October 29, 2022 11:15
-
-
Save pranaypatel512/3e5d17934b71cc0c54d504e7281849f1 to your computer and use it in GitHub Desktop.
WelcomeScreenPreview
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
@Preview(showSystemUi = true, device = "spec:width=411dp,height=891dp") | |
@Preview(uiMode = Configuration.UI_MODE_NIGHT_YES) | |
// @Preview(showSystemUi = true, device = "spec:width=673.5dp,height=841dp,dpi=480") | |
// @Preview(showSystemUi = true, device = "spec:width=1280dp,height=800dp,dpi=480") | |
// @Preview(showSystemUi = true, device = "spec:width=1920dp,height=1080dp,dpi=480") | |
@Composable | |
fun WelcomeScreenPreview() { | |
MyAppTheme() { | |
Surface() { | |
WelcomeScreen() | |
} | |
} | |
} | |
// User multiple preview annotation with different device spec to see preview in different devices |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment