Remove fontSize parameter. Must use style only.
This commit is contained in:
parent
b31a449338
commit
2844dee6d2
19 changed files with 37 additions and 31 deletions
|
|
@ -94,7 +94,7 @@ private fun InitialsAvatar(
|
|||
Text(
|
||||
modifier = Modifier.align(Alignment.Center),
|
||||
text = avatarData.initial,
|
||||
fontSize = avatarData.size.dp.toSp() / 2,
|
||||
style = ElementTheme.typography.fontBodyMdRegular.copy(fontSize = avatarData.size.dp.toSp() / 2),
|
||||
color = Color.White,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,8 +56,6 @@ fun Text(
|
|||
text: String,
|
||||
modifier: Modifier = Modifier,
|
||||
color: Color = Color.Unspecified,
|
||||
// Will be removed, only style should be used
|
||||
fontSize: TextUnit = TextUnit.Unspecified,
|
||||
fontStyle: FontStyle? = null,
|
||||
textDecoration: TextDecoration? = null,
|
||||
textAlign: TextAlign? = null,
|
||||
|
|
@ -72,7 +70,6 @@ fun Text(
|
|||
text = text,
|
||||
modifier = modifier,
|
||||
color = color,
|
||||
fontSize = fontSize,
|
||||
fontStyle = fontStyle,
|
||||
textDecoration = textDecoration,
|
||||
textAlign = textAlign,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue