Migrate to 0.3.0-build146 (codeviewer)

This commit is contained in:
Igor Demin
2021-01-28 18:28:09 +03:00
parent 13e0bd184a
commit 930d807306
11 changed files with 53 additions and 42 deletions

View File

@@ -24,8 +24,8 @@ actual suspend fun imageFromUrl(url: String): ImageBitmap {
}
@Composable
actual fun font(name: String, res: String, weight: FontWeight, style: FontStyle): Font {
actual fun Font(name: String, res: String, weight: FontWeight, style: FontStyle): Font {
val context = AmbientContext.current
val id = context.resources.getIdentifier(res, "font", context.packageName)
return androidx.compose.ui.text.font.font(id, weight, style)
return androidx.compose.ui.text.font.Font(id, weight, style)
}