@Composable public fun NetworkLoadingIndicator( modifier: Modifier = Modifier, spinnerSize: Dp = 18.dp, textStyle: TextStyle = ChatTheme.typography.title3Bold, textColor: Color = ChatTheme.colors.textHighEmphasis, ) { Row( modifier, verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.Center ) { CircularProgressIndicator( modifier = Modifier .padding(horizontal = 8.dp) .size(spinnerSize), strokeWidth = 2.dp, color = ChatTheme.colors.primaryAccent, ) Text( text = stringResource(id = R.string.stream_compose_waiting_for_network), style = textStyle, color = textColor, ) } }
Represents the default network loading view for the header, in case the network is down. @param modifier Styling for the [Row]. @param spinnerSize The size of the spinner. @param textStyle The text style of the inner text. @param textColor The text color of the inner text.