@momo-kits/native-kits 0.89.33-rc.2 → 0.89.33
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.
|
@@ -163,8 +163,7 @@ fun Header(
|
|
|
163
163
|
titlePosition: TitlePosition,
|
|
164
164
|
title: String,
|
|
165
165
|
headerRight: @Composable (() -> Unit)? = null,
|
|
166
|
-
|
|
167
|
-
goBack: (() -> Unit) = { },
|
|
166
|
+
goBack: (() -> Unit)?,
|
|
168
167
|
opacity: Float? = null,
|
|
169
168
|
animatedHeader: AnimatedHeader? = null,
|
|
170
169
|
useSearchInput: Boolean? = false,
|
|
@@ -207,7 +206,7 @@ fun Header(
|
|
|
207
206
|
horizontalArrangement = Arrangement.SpaceBetween
|
|
208
207
|
) {
|
|
209
208
|
Box {
|
|
210
|
-
if (
|
|
209
|
+
if (goBack !== null) {
|
|
211
210
|
Box(
|
|
212
211
|
modifier = Modifier
|
|
213
212
|
.size(28.dp)
|
|
@@ -255,7 +254,7 @@ fun Header(
|
|
|
255
254
|
.padding(horizontal = Spacing.M),
|
|
256
255
|
verticalAlignment = Alignment.CenterVertically,
|
|
257
256
|
) {
|
|
258
|
-
if (
|
|
257
|
+
if (goBack !== null) {
|
|
259
258
|
Spacer(Modifier.width(40.dp))
|
|
260
259
|
}
|
|
261
260
|
if (useSearchInput == true && inputSearchProps != null) {
|