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(
|
fun CustomCameraShutter(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
onShutterClick: () -> Unit = {},
|
onShutterClick: () -> Unit = {},
|
||||||
onFlashClick: () -> Unit = {},
|
// onFlashClick: () -> Unit = {},
|
||||||
onHistoryClick: () -> Unit = {}
|
// onHistoryClick: () -> Unit = {}
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(horizontal = 44.dp, vertical = 16.dp),
|
.padding(horizontal = 44.dp, vertical = 16.dp),
|
||||||
horizontalArrangement = Arrangement.SpaceBetween,
|
horizontalArrangement = Arrangement.Center,
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
// Tombol Flash
|
// Tombol Flash
|
||||||
IconButton(
|
// IconButton(
|
||||||
onClick = onFlashClick,
|
// onClick = onFlashClick,
|
||||||
) {
|
// ) {
|
||||||
Icon(
|
// Icon(
|
||||||
modifier = Modifier.size(32.dp),
|
// modifier = Modifier.size(32.dp),
|
||||||
painter = painterResource(id = R.drawable.flash),
|
// painter = painterResource(id = R.drawable.flash),
|
||||||
contentDescription = "Flash",
|
// contentDescription = "Flash",
|
||||||
tint = MaterialTheme.colorScheme.onBackground
|
// tint = MaterialTheme.colorScheme.onBackground
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
|
|
||||||
IconButton(
|
IconButton(
|
||||||
onClick = onShutterClick,
|
onClick = onShutterClick,
|
||||||
|
|
@ -65,17 +65,17 @@ fun CustomCameraShutter(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton(
|
// IconButton(
|
||||||
onClick = onHistoryClick,
|
// onClick = onHistoryClick,
|
||||||
|
//
|
||||||
) {
|
// ) {
|
||||||
Icon(
|
// Icon(
|
||||||
modifier = Modifier.size(32.dp),
|
// modifier = Modifier.size(32.dp),
|
||||||
painter = painterResource(id = R.drawable.solar_history),
|
// painter = painterResource(id = R.drawable.solar_history),
|
||||||
contentDescription = "Gallery",
|
// contentDescription = "Gallery",
|
||||||
tint = MaterialTheme.colorScheme.onBackground
|
// tint = MaterialTheme.colorScheme.onBackground
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user