Add missing OptIn for ExperimentalCoroutinesApi
This commit is contained in:
parent
7a90328900
commit
6d64eee3c5
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import androidx.compose.runtime.setValue
|
|||
import cafe.adriel.voyager.core.model.ScreenModel
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.SharingStarted
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
|
|
@ -58,7 +59,7 @@ class SharedScreenModel() : ScreenModel {
|
|||
private val _searchTitle = MutableStateFlow<String>("")
|
||||
val searchTitle: StateFlow<String> = _searchTitle.asStateFlow()
|
||||
|
||||
@OptIn
|
||||
@OptIn(ExperimentalCoroutinesApi::class)
|
||||
val filteredSongs: StateFlow<List<DrawerItem>> = searchTitle
|
||||
.mapLatest { currentTitle ->
|
||||
val searchTxt = if (currentTitle == "") "" else currentTitle.trim()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue