Skip to content

Commit

Permalink
Merge pull request #2 from maverick-2013/fix/navbar_clickability
Browse files Browse the repository at this point in the history
Fixed navbar clickability
  • Loading branch information
KhubaibKhan4 committed Jun 14, 2024
2 parents 1774106 + 45db6c6 commit 2a3bed7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
16 changes: 8 additions & 8 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ kotlin {
implementation(libs.kotlinx.datetime)
implementation(libs.screen.size)
implementation(project.dependencies.platform("io.insert-koin:koin-bom:3.6.0-wasm-alpha2"))
implementation("io.insert-koin:koin-core")
implementation("io.insert-koin:koin-compose")
implementation("io.insert-koin:koin-annotations:1.3.1")
implementation(libs.insert.koin.koin.core)
implementation(libs.koin.compose)
implementation(libs.koin.annotations)
implementation(libs.kamel.image)
implementation("io.github.thechance101:chart:Beta-0.0.5")
implementation("com.ionspin.kotlin:bignum:0.3.9")
implementation(libs.chart)
implementation(libs.bignum)
implementation(libs.ktor.core)
implementation(libs.coil.compose.core)
implementation(libs.coil.compose)
Expand All @@ -105,9 +105,9 @@ kotlin {
implementation(libs.ktor.client.okhttp)
implementation(libs.sqlDelight.driver.android)
implementation(project.dependencies.platform("io.insert-koin:koin-bom:3.6.0-wasm-alpha2"))
implementation("io.insert-koin:koin-core")
implementation("io.insert-koin:koin-android")
implementation("io.insert-koin:koin-annotations:1.3.1")
implementation(libs.io.insert.koin.koin.core)
implementation(libs.koin.android)
implementation(libs.koin.annotations)
}

jvmMain.dependencies {
Expand Down
3 changes: 2 additions & 1 deletion composeApp/src/commonMain/kotlin/org/company/app/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.ime
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down Expand Up @@ -123,7 +124,7 @@ fun AppContent() {
Scaffold(bottomBar = {
if (!showNavigationRail) {
BottomNavigation(
modifier = Modifier.fillMaxWidth().windowInsetsPadding(WindowInsets.ime),
modifier = Modifier.fillMaxWidth().navigationBarsPadding(),
backgroundColor = MaterialTheme.colorScheme.background,
contentColor = contentColorFor(Color.Red),
elevation = 8.dp
Expand Down
10 changes: 10 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[versions]

bignum = "0.3.9"
chart = "Beta-0.0.5"
kamelImage = "0.9.5"
koinAnnotations = "1.3.1"
kotlin = "2.0.0"
compose = "1.6.11"
agp = "8.2.2"
Expand All @@ -25,7 +28,14 @@ coil3 = "3.0.0-alpha06"
androidx-activityCompose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activityCompose" }
androidx-testManifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "androidx-uiTest" }
androidx-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "androidx-uiTest" }
bignum = { module = "com.ionspin.kotlin:bignum", version.ref = "bignum" }
chart = { module = "io.github.thechance101:chart", version.ref = "chart" }
insert-koin-koin-core = { module = "io.insert-koin:koin-core" }
io-insert-koin-koin-core = { module = "io.insert-koin:koin-core" }
kamel-image = { module = "media.kamel:kamel-image", version.ref = "kamelImage" }
koin-android = { module = "io.insert-koin:koin-android" }
koin-annotations = { module = "io.insert-koin:koin-annotations", version.ref = "koinAnnotations" }
koin-compose = { module = "io.insert-koin:koin-compose" }
lifecycle-viewmodel-compose = { module = "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycleViewmodelCompose" }
voyager-navigator = { module = "cafe.adriel.voyager:voyager-navigator", version.ref = "voyager" }
tab-navigator = { module = "cafe.adriel.voyager:voyager-tab-navigator", version.ref = "voyager" }
Expand Down

0 comments on commit 2a3bed7

Please sign in to comment.