Skip to content

Commit

Permalink
fix: add missing default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rl3x committed Jan 2, 2023
1 parent 6925d6a commit 542842a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion html-text/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply from: '../buildCompose.gradle'

ext {
PUBLISH_GROUP_ID = 'de.charlex.compose'
PUBLISH_VERSION = '1.4.0'
PUBLISH_VERSION = '1.4.1'
PUBLISH_ARTIFACT_ID = 'html-text'
}

Expand Down
32 changes: 16 additions & 16 deletions html-text/src/main/java/de/charlex/compose/HtmlText.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,23 +195,23 @@ fun HtmlText(
*/
@Composable
fun HtmlText(
modifier: Modifier,
modifier: Modifier = Modifier,
annotatedString: AnnotatedString,
color: Color,
fontSize: TextUnit,
fontStyle: FontStyle?,
fontWeight: FontWeight?,
fontFamily: FontFamily?,
letterSpacing: TextUnit,
textDecoration: TextDecoration?,
textAlign: TextAlign?,
lineHeight: TextUnit,
overflow: TextOverflow,
softWrap: Boolean,
maxLines: Int,
inlineContent: Map<String, InlineTextContent>,
onTextLayout: (TextLayoutResult) -> Unit,
style: TextStyle
color: Color = Color.Unspecified,
fontSize: TextUnit = TextUnit.Unspecified,
fontStyle: FontStyle? = null,
fontWeight: FontWeight? = null,
fontFamily: FontFamily? = null,
letterSpacing: TextUnit = TextUnit.Unspecified,
textDecoration: TextDecoration? = null,
textAlign: TextAlign? = null,
lineHeight: TextUnit = TextUnit.Unspecified,
overflow: TextOverflow = TextOverflow.Clip,
softWrap: Boolean = true,
maxLines: Int = Int.MAX_VALUE,
inlineContent: Map<String, InlineTextContent> = mapOf(),
onTextLayout: (TextLayoutResult) -> Unit = {},
style: TextStyle = LocalTextStyle.current
) {
val clickable =
annotatedString.getStringAnnotations(0, annotatedString.length - 1).any { it.tag == "url" }
Expand Down

0 comments on commit 542842a

Please sign in to comment.