Remove includeFontPadding deprecation

This commit is contained in:
vfsfitvnm
2022-06-11 19:05:32 +02:00
parent afc64cae74
commit f39276875d
3 changed files with 1 additions and 9 deletions

View File

@@ -5,8 +5,6 @@ import androidx.compose.runtime.Immutable
import androidx.compose.runtime.remember
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.ExperimentalTextApi
import androidx.compose.ui.text.PlatformTextStyle
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
@@ -26,7 +24,6 @@ data class Typography(
val LocalTypography = staticCompositionLocalOf<Typography> { TODO() }
@ExperimentalTextApi
@Composable
fun rememberTypography(color: Color): Typography {
return remember(color) {
@@ -59,8 +56,7 @@ fun rememberTypography(color: Color): Typography {
),
),
fontWeight = FontWeight.Normal,
color = color,
platformStyle = PlatformTextStyle(includeFontPadding = false)
color = color
).run {
Typography(
xxs = copy(fontSize = 12.sp),