simple login screen with simple viewmodel's logic

This commit is contained in:
2024-08-05 02:52:58 +03:00
parent 471af18f5e
commit 2c91f6bb62
11 changed files with 144 additions and 33 deletions
@@ -0,0 +1,9 @@
package dev.meloda.overseerr.ext
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.update
fun <T> MutableStateFlow<T>.setValue(function: (T) -> T) {
val newValue = function(value)
update { newValue }
}