Created
August 30, 2021 03:27
-
-
Save widiarifki/5f5923c0a6a5f75ecdf803592c3faef6 to your computer and use it in GitHub Desktop.
This gist is part of https://github.com/widiarifki/android-playground/tree/master/compose
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(showBackground = true) | |
@Composable | |
fun PreviewShoppingListScreen() { | |
val previewItems = List(10) { index -> | |
ShoppingItem(id = index, name = "Item Preview $index") | |
} | |
MaterialTheme { | |
ShoppingListScreen( | |
isLoading = true, | |
shoppingItems = previewItems, | |
onAddItem = {}, | |
onToggleTickItem = {}, | |
onDeleteItem = {} | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment