@momo-kits/native-kits 0.162.2-test.22-debug → 0.162.2-test.23-debug
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compose/build.gradle.kts +1 -1
- package/compose/compose.podspec +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigation.kt +0 -5
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +3 -6
- package/gradle.properties +1 -1
- package/package.json +1 -1
package/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -33,7 +33,6 @@ class Navigation(
|
|
|
33
33
|
tintColor: Color? = null,
|
|
34
34
|
footerComponent: (@Composable () -> Unit)? = null,
|
|
35
35
|
floatingButtonProps: FloatingButtonProps? = null,
|
|
36
|
-
applyContentBottomPadding: Boolean? = null,
|
|
37
36
|
keyboardOptions: KeyboardOptions? = null
|
|
38
37
|
) {
|
|
39
38
|
updateOptions(
|
|
@@ -50,7 +49,6 @@ class Navigation(
|
|
|
50
49
|
tintColor = tintColor ?: options.tintColor,
|
|
51
50
|
footerComponent = footerComponent ?: options.footerComponent,
|
|
52
51
|
floatingButtonProps = floatingButtonProps ?: options.floatingButtonProps,
|
|
53
|
-
applyContentBottomPadding = applyContentBottomPadding ?: options.applyContentBottomPadding,
|
|
54
52
|
keyboardOptions = keyboardOptions ?: options.keyboardOptions,
|
|
55
53
|
)
|
|
56
54
|
)
|
|
@@ -86,9 +84,6 @@ data class NavigationOptions(
|
|
|
86
84
|
val tintColor: Color? = null,
|
|
87
85
|
val footerComponent: @Composable (() -> Unit)? = null,
|
|
88
86
|
val floatingButtonProps: FloatingButtonProps? = null,
|
|
89
|
-
// Reserve the bottom safe-area (navigation bar) padding on the content when there is no footer.
|
|
90
|
-
// Set false for screens that draw edge-to-edge or handle their own bottom inset.
|
|
91
|
-
val applyContentBottomPadding: Boolean = true,
|
|
92
87
|
val keyboardOptions: KeyboardOptions = KeyboardOptions()
|
|
93
88
|
) {
|
|
94
89
|
internal fun hasFooter() : Boolean = footerComponent != null
|
|
@@ -279,8 +279,8 @@ internal fun ColumnScope.MainContent(content: @Composable () -> Unit, isBottomTa
|
|
|
279
279
|
.padding(
|
|
280
280
|
bottom = when {
|
|
281
281
|
options.hasFooter() || isBottomTabRoot -> 0.dp
|
|
282
|
-
!options.applyContentBottomPadding -> 0.dp
|
|
283
282
|
isBottomTabChild -> bottomTabBarInset() + (navigationBar - keyboardSizeState().value).coerceAtLeast(0.dp)
|
|
283
|
+
!options.scrollData.scrollable -> 0.dp
|
|
284
284
|
else -> navigationBar
|
|
285
285
|
}
|
|
286
286
|
)
|
|
@@ -43,14 +43,12 @@ fun supportsImePadding(): Boolean = when (val v = getOSVersion()) {
|
|
|
43
43
|
is OSVersion.Android -> v.sdk > 29
|
|
44
44
|
is OSVersion.IOS -> true
|
|
45
45
|
}
|
|
46
|
-
/** Sentinel for [LottieAnimation.iterations] meaning "loop forever" (kept as the default). */
|
|
47
46
|
const val LottieIterateForever: Int = Int.MAX_VALUE
|
|
48
47
|
|
|
49
|
-
/** Event names emitted by [LottieAnimation.onEvent]. */
|
|
50
48
|
object LottieEvent {
|
|
51
|
-
const val Start = "start"
|
|
52
|
-
const val Pause = "pause"
|
|
53
|
-
const val Finish = "finish"
|
|
49
|
+
const val Start = "start"
|
|
50
|
+
const val Pause = "pause"
|
|
51
|
+
const val Finish = "finish"
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
@Composable
|
|
@@ -61,7 +59,6 @@ expect fun LottieAnimation(
|
|
|
61
59
|
placedAsOverlay: Boolean = false,
|
|
62
60
|
iterations: Int = LottieIterateForever,
|
|
63
61
|
isPlaying: Boolean = true,
|
|
64
|
-
// Single listener for playback events; receives a LottieEvent.* string.
|
|
65
62
|
onEvent: ((String) -> Unit)? = null,
|
|
66
63
|
modifier: Modifier = Modifier,
|
|
67
64
|
useCompose: Boolean = false
|
package/gradle.properties
CHANGED