This commit is contained in:
Syer10
2021-05-10 12:08:13 -04:00
parent fd0a6facc1
commit bea85cd78f
2 changed files with 2 additions and 4 deletions

View File

@@ -39,9 +39,8 @@ fun KtorImage(
alpha: Float = DefaultAlpha,
colorFilter: ColorFilter? = null,
retries: Int = 3,
httpClient: Http? = null
client: Http = remember { AppScope.getInstance() }
) {
val client = remember { httpClient ?: AppScope.getInstance() }
BoxWithConstraints {
val drawable: MutableState<ImageBitmap?> = remember { mutableStateOf(null) }
val loading: MutableState<Boolean> = remember { mutableStateOf(true) }

View File

@@ -68,8 +68,7 @@ private class AppThemeViewModel @Inject constructor(
val primary by colors.primaryStateFlow.collectAsState()
val secondary by colors.secondaryStateFlow.collectAsState()
val material = getMaterialColors(baseTheme.colors, primary, secondary)
return material
return getMaterialColors(baseTheme.colors, primary, secondary)
}
@Composable