izyaboi
02/24/2021, 1:51 PMIcon(
imageVector = Icons.Default.PlayArrow,
modifier = Modifier.padding(8.dp),
contentDescription = null,
)
but i want the pause icon from the material icon without to import the whole lib ? how can i get a ImageVector from painterResource?Bryan Herbst
02/24/2021, 1:53 PMIcon
with a painterResource directly-
Icon(
painter = painterResource(R.drawable.ic_material_pause),
modifier = Modifier.padding(8.dp),
contentDescription = null
)
izyaboi
02/24/2021, 1:54 PMimageVector = painterResource(id = R.drawable.pause),
intellj said found pointerSe7eN
02/24/2021, 1:55 PMimageVector
to `painter`:
painter = painterResource(id = R.drawable.pause),
Desmond Teo
02/24/2021, 1:56 PMpainter = painterResource()
instead of
imageVector = painterResource()
izyaboi
02/24/2021, 1:56 PM