@momo-kits/native-kits 0.162.2-test.24-debug → 0.162.2-test.25-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
CHANGED
|
@@ -24,7 +24,6 @@ import androidx.compose.foundation.shape.RoundedCornerShape
|
|
|
24
24
|
import androidx.compose.runtime.Composable
|
|
25
25
|
import androidx.compose.runtime.DisposableEffect
|
|
26
26
|
import androidx.compose.runtime.LaunchedEffect
|
|
27
|
-
import androidx.compose.runtime.mutableStateOf
|
|
28
27
|
import androidx.compose.runtime.remember
|
|
29
28
|
import androidx.compose.runtime.rememberCoroutineScope
|
|
30
29
|
import androidx.compose.ui.Alignment
|
|
@@ -102,11 +101,7 @@ internal fun BottomSheet(
|
|
|
102
101
|
)
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
val isClosing = remember { mutableStateOf(false) }
|
|
106
|
-
|
|
107
104
|
fun closeEvent(){
|
|
108
|
-
if (isClosing.value) return
|
|
109
|
-
isClosing.value = true
|
|
110
105
|
coroutineScope.launch {
|
|
111
106
|
sheetOffset.animateTo(
|
|
112
107
|
targetValue = screenHeightPx,
|
|
@@ -122,7 +117,7 @@ internal fun BottomSheet(
|
|
|
122
117
|
easing = CubicBezierEasing(0.3f, 0.0f, 0.8f, 0.15f)
|
|
123
118
|
)
|
|
124
119
|
)
|
|
125
|
-
|
|
120
|
+
OverplayComponentRegistry.hardClearAfterDismiss()
|
|
126
121
|
}
|
|
127
122
|
}
|
|
128
123
|
|
|
@@ -71,11 +71,7 @@ internal fun ModalScreen(
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
val isClosing = remember { mutableStateOf(false) }
|
|
75
|
-
|
|
76
74
|
fun closeEvent() {
|
|
77
|
-
if (isClosing.value) return
|
|
78
|
-
isClosing.value = true
|
|
79
75
|
coroutineScope.launch {
|
|
80
76
|
alpha.animateTo(
|
|
81
77
|
targetValue = 0f,
|
|
@@ -85,7 +81,7 @@ internal fun ModalScreen(
|
|
|
85
81
|
targetValue = 0.8f,
|
|
86
82
|
animationSpec = tween(durationMillis = 200)
|
|
87
83
|
)
|
|
88
|
-
|
|
84
|
+
OverplayComponentRegistry.hardClearAfterDismiss()
|
|
89
85
|
}
|
|
90
86
|
}
|
|
91
87
|
|
package/gradle.properties
CHANGED