To apply the align modifier you can scope your composable with the required scope.
You can use:
@Composable fun ColumnScope.Devices( isEmpty: Boolean, ) { AnimatedVisibility( isEmpty, modifier = Modifier.fillMaxWidth().align(Alignment.Start) ) { Text("xxx") } } Otherwise you can use:
@Composable fun Devices( modifier: Modifier, isEmpty: Boolean, ) { AnimatedVisibility( isEmpty, modifier = modifier ) { Text("xxx") } } and then
item(){ Column() { Devices( modifier = Modifier.fillMaxWidth().align(Alignment.Start), isEmpty = true) } } 