Whenever I click anywhere on the screen, it seems that the profile button which is on the left keeps on getting clicked. Even if i click another button it gets clicked
@Composable
fun TopAppBar() {
Surface() {
Column {
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp, vertical = 8.dp)
) {
IconButton(onClick = { /*TODO*/ }
) {
Icon(
imageVector = Icons.Filled.AccountCircle, contentDescription = "Profile"
)
}
Text(
text = "Overview",
color = Color.Black,
modifier = Modifier.weight(1f)
)
IconButton(onClick = { /*TODO*/ }
) {
Icon(
imageVector = Icons.Filled.Notifications,
contentDescription = "Notifications"
)
}
IconButton(onClick = { /*TODO*/ }
) {
Icon(
imageVector = Icons.Filled.Menu, contentDescription = "Menu"
)
}
}
Divider(color = Color.Black, thickness = 1.dp)
}
}
}