From 09035a84193dd4a83ca08bb7e5f91120c1642cca Mon Sep 17 00:00:00 2001 From: Adrian Witaszak Date: Tue, 1 Mar 2022 13:02:21 +0000 Subject: [PATCH] moved dependencies to buildSrc --- app/build.gradle.kts | 2 +- .../kotlin/com/adwi/neumorph/sample/ui/components/Header.kt | 3 ++- .../kotlin/com/adwi/neumorph/sample/ui/components/ItemPanel.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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,