Skip to content

Commit

Permalink
Android spacing bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownJoe796 committed Mar 7, 2024
1 parent 6fee403 commit dfc65f4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,14 @@ package com.lightningkite.mppexampleapp

import com.lightningkite.mppexampleapp.docs.code
import com.lightningkite.mppexampleapp.docs.example
import com.lightningkite.rock.models.px
import com.lightningkite.rock.views.*
import com.lightningkite.rock.views.direct.*

actual fun ViewWriter.platformSpecific() {
col {
card - row {
expanding - scrollsHorizontally - code - text(
"""
Example Text
""".trimIndent()
)
separator()
expanding - card - stack {
text("Hello world")
}
}
card - row {
expanding - scrollsHorizontally - code - text(
"""
Example Text
""".trimIndent()
)
separator()
expanding - card - stack {
text("Hello world")
}
}
stack {
spacing = 0.px
important - space()
important - space()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ actual typealias NContainingView = ViewGroup

@ViewDsl
actual inline fun ViewWriter.stackActual(crossinline setup: ContainingView.() -> Unit) = viewElement(
factory = ::FrameLayout,
factory = ::SlightlyModifiedFrameLayout,
wrapper = ::ContainingView
) {
handleTheme(native, viewDraws = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fun ViewWriter.appNavHamburger(setup: AppNav.() -> Unit) {
::exists { appNav.existsProperty.await() }
} in bar
expanding - stack {
spacing = 0.px
navigatorView(navigator)
row {
ignoreInteraction = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ actual inline var Link.to: RockScreen
it.preventDefault()
navigator.navigate(value)
(native.asDynamic().__ROCK__onNavigate as? suspend ()->Unit)?.let {
println("launchingmanucan")
calculationContext.launchManualCancel(it)
}
}
Expand Down

0 comments on commit dfc65f4

Please sign in to comment.