Location
fun Location(profile: Profile, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.bodyMedium.copy(color = MaterialTheme.colorScheme.outline), content: @Composable (String, Modifier) -> Unit = { location, contentModifier ->
LocationDefaultContent(location, textStyle, contentModifier)
})
Location is a composable that displays a user's location in text format. The user's location is displayed in a text format. If the location is too long, it will be truncated
Parameters
profile
The user's profile information
modifier
Composable modifier
textStyle
The style to apply to the default text content
content
Composable to display the user location
fun Location(state: ComponentState<Profile>, modifier: Modifier = Modifier, skeletonModifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.bodyMedium.copy(color = MaterialTheme.colorScheme.outline), content: @Composable (String, Modifier) -> Unit = { location, contentModifier ->
LocationDefaultContent(location, textStyle, contentModifier)
})
Location is a composable that displays a user's location in text format or a loading skeleton. The user's location is displayed in a text format. If the location is too long, it will be truncated
Parameters
state
The user's profile loading state
modifier
Composable modifier
skeletonModifier
Composable modifier for the loading skeleton component
textStyle
The style to apply to the default text content
content
Composable to display the user location