How can I solve this issue Content padding parameter it is not used
in kotlin ? I made a dictionary app and I edited some codes and I have a problem like this Where should I add the content padding? how can i fix it?
@Composable
fun MainScreen(navController: NavController) {
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colors.background
) {
Scaffold(
topBar = {
TopAppBar(
backgroundColor = bar,
title = {
Text(
text = "Main Menu",
modifier = Modifier.fillMaxWidth(),
color = Color.White,
fontSize = 22.sp
)
},
navigationIcon = {
IconButton(
onClick = { navController.navigate(Screen.SearchScreen.route) }
) {
Icon(
painter = painterResource(id = R.drawable.ic_look_for_96),
contentDescription = "search",
tint = Color.Unspecified,
)
}
}
)
}
) {
gridView(navController) // problem is hear
}
}
}