Skip to content

Instantly share code, notes, and snippets.

fun Modifier.clearFocusOnKeyboardDismiss(): Modifier = composed {
var isFocused by remember { mutableStateOf(false) }
var keyboardAppearedSinceLastFocused by remember { mutableStateOf(false) }
if (isFocused) {
val imeIsVisible = LocalWindowInsets.current.ime.isVisible
val focusManager = LocalFocusManager.current
LaunchedEffect(imeIsVisible) {
if (imeIsVisible) {
keyboardAppearedSinceLastFocused = true
} else if (keyboardAppearedSinceLastFocused) {
import kotlin.experimental.ExperimentalTypeInference
@OptIn(ExperimentalTypeInference::class, ExperimentalCoroutinesApi::class)
inline fun <reified T, R> combineTransformLatest(
vararg flows: Flow<T>,
@BuilderInference noinline transform: suspend FlowCollector<R>.(Array<T>) -> Unit
): Flow<R> {
return combine(*flows) { it }
.transformLatest(transform)
}
https://www.googleapis.com/drive/v3/files/1JtMDIskg9nfwhi85xjX1z12uiVOiFdCv/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Vocaloid Gift BOX.zip | 162202248
https://www.googleapis.com/drive/v3/files/1CL1EGz_VtXFuSnPdrGcllE_7AbJMF9iv/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Stepmania France Megapack.zip | 162269939
https://www.googleapis.com/drive/v3/files/1d7pY4LDGbtZKIjyM8baXqaW5L4sZbwQA/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | 7mai3 (JP region change needed).zip | 162225099
https://www.googleapis.com/drive/v3/files/1hTAoP6uv27rWJlHJj55rMOELShJ0I8fL/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | SS 25th Style.zip | 162218987
https://www.googleapis.com/drive/v3/files/11Qw3sI7WkqY_n2Gj54PxcMvCdIKpPTS7/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | HBK Synchro 76-100.zip | 204019659
https://www.googleapis.com/drive/v3/files/1ZetJdAoi94DWYKPgmj6uQAXPYfewCE00/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Estepper Exclusives 2.zip | 203434209