I recently started working with Jetpack Compose. I've got the following composable:
@Composable
fun SearchScreen(navController: NavHostController) {
Scaffold(
topBar = { SearchBar() },
content = {
Column (
modifier = Modifier.fillMaxSize()
) {
// some nested Composables
}
}
)
}
But with this code as-is, the whole code within content = {...} is being underlined in red saying Jetpack Compose: Content padding parameter it is not used. I already read in this Stackoverflow Post that actually, PaddingValues only are provided in a Scaffold if the bottomBar is set, which obviously is not the case here. So I do not understand why I am getting this error.
Note: The app actually does use a BottomNavigation, but not within the Composable that I showed above. Can it be that this is still somehow propagated here?

contentargument as a trailing lambda and the code works fine.compose_version = '1.2.0-alpha08, as I need the FilterChip Composable. Which version are you using?composeVersion = "1.1.1"and I have seen@Pylyp Dukhovanswer below which clarifies the differences.