Skip to content

Instantly share code, notes, and snippets.

@saldisobi
Created February 13, 2023 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saldisobi/650650d1b70394a4e526bde45cc747ec to your computer and use it in GitHub Desktop.
Save saldisobi/650650d1b70394a4e526bde45cc747ec to your computer and use it in GitHub Desktop.
Icon(
modifier = Modifier.clickable { commandProcessor(AddCommand()) },
imageVector = Icons.Filled.Add,
contentDescription = "add"
)
Icon(
modifier = Modifier.clickable { commandProcessor(TextUpdateCommand(nameMyModel)) },
imageVector = Icons.Filled.Edit,
contentDescription = "edit"
)
Icon(
modifier = Modifier.clickable { commandProcessor(DeleteProductCommand()) },
imageVector = Icons.Filled.Delete,
contentDescription = "delete"
)
Icon(
modifier = Modifier.clickable { commandProcessor(ListCommand()) },
imageVector = Icons.Filled.List,
contentDescription = "list"
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment