diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a08f390..a9742a5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -58,7 +58,7 @@ dependencies { debugImplementation(Dependencies.composeToolingDebug) debugImplementation(Dependencies.composeManifestDebug) -// implementation("com.github.adrianwitaszak:neumorph-ui:0.7.0") +// implementation("com.github.adrianwitaszak:neumorph-ui:0.7.7") testImplementation(Dependencies.jUnit4) testImplementation(Dependencies.composeTest) diff --git a/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/Header.kt b/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/Header.kt index a8195e6..b9df751 100644 --- a/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/Header.kt +++ b/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/Header.kt @@ -14,6 +14,7 @@ fun Header( ) { Text( text = text, - style = style + style = style, + modifier = modifier ) } diff --git a/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/ItemPanel.kt b/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/ItemPanel.kt index 1e93f44..9cc56b4 100644 --- a/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/ItemPanel.kt +++ b/app/src/main/kotlin/com/adwi/neumorph/sample/ui/components/ItemPanel.kt @@ -200,7 +200,7 @@ fun HomeItemPreviewLight() { private fun HomeItemPreviewDark() { PreviewTemplate( darkTheme = true, - ) { text -> + ) { ItemPanel(title = "Coming soon") { elevation, corners, color -> MorphPressed( elevation = elevation.dp,