refactor: remove flash and history buttons from camera shutter
This commit is contained in:
parent
1ef33bcfda
commit
0dae042e54
|
|
@ -25,27 +25,27 @@ import com.syaroful.agrilinkvocpro.presentation.theme.MainGreen
|
|||
fun CustomCameraShutter(
|
||||
modifier: Modifier = Modifier,
|
||||
onShutterClick: () -> Unit = {},
|
||||
onFlashClick: () -> Unit = {},
|
||||
onHistoryClick: () -> Unit = {}
|
||||
// onFlashClick: () -> Unit = {},
|
||||
// onHistoryClick: () -> Unit = {}
|
||||
) {
|
||||
Row(
|
||||
modifier = modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 44.dp, vertical = 16.dp),
|
||||
horizontalArrangement = Arrangement.SpaceBetween,
|
||||
horizontalArrangement = Arrangement.Center,
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
// Tombol Flash
|
||||
IconButton(
|
||||
onClick = onFlashClick,
|
||||
) {
|
||||
Icon(
|
||||
modifier = Modifier.size(32.dp),
|
||||
painter = painterResource(id = R.drawable.flash),
|
||||
contentDescription = "Flash",
|
||||
tint = MaterialTheme.colorScheme.onBackground
|
||||
)
|
||||
}
|
||||
// IconButton(
|
||||
// onClick = onFlashClick,
|
||||
// ) {
|
||||
// Icon(
|
||||
// modifier = Modifier.size(32.dp),
|
||||
// painter = painterResource(id = R.drawable.flash),
|
||||
// contentDescription = "Flash",
|
||||
// tint = MaterialTheme.colorScheme.onBackground
|
||||
// )
|
||||
// }
|
||||
|
||||
IconButton(
|
||||
onClick = onShutterClick,
|
||||
|
|
@ -65,17 +65,17 @@ fun CustomCameraShutter(
|
|||
)
|
||||
}
|
||||
|
||||
IconButton(
|
||||
onClick = onHistoryClick,
|
||||
|
||||
) {
|
||||
Icon(
|
||||
modifier = Modifier.size(32.dp),
|
||||
painter = painterResource(id = R.drawable.solar_history),
|
||||
contentDescription = "Gallery",
|
||||
tint = MaterialTheme.colorScheme.onBackground
|
||||
)
|
||||
}
|
||||
// IconButton(
|
||||
// onClick = onHistoryClick,
|
||||
//
|
||||
// ) {
|
||||
// Icon(
|
||||
// modifier = Modifier.size(32.dp),
|
||||
// painter = painterResource(id = R.drawable.solar_history),
|
||||
// contentDescription = "Gallery",
|
||||
// tint = MaterialTheme.colorScheme.onBackground
|
||||
// )
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user