File tree Expand file tree Collapse file tree
app/src/main/java/com/maazm7d/termuxhub Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import com.maazm7d.termuxhub.navigation.TermuxHubAppNav
1111import androidx.hilt.navigation.compose.hiltViewModel
1212import com.maazm7d.termuxhub.ui.theme.ThemeViewModel
1313import com.maazm7d.termuxhub.ui.theme.ThemeMode
14+ import androidx.compose.runtime.collectAsState
15+ import androidx.compose.runtime.getValue
1416import com.maazm7d.termuxhub.ui.theme.TermuxHubTheme
1517import dagger.hilt.android.AndroidEntryPoint
1618
Original file line number Diff line number Diff line change 11package com.maazm7d.termuxhub.ui.theme
22
33import android.content.Context
4- import androidx.datastore.preferences.core.stringPreferencesKey
54import androidx.lifecycle.ViewModel
65import androidx.lifecycle.viewModelScope
76import dagger.hilt.android.lifecycle.HiltViewModel
87import kotlinx.coroutines.flow.*
98import kotlinx.coroutines.launch
109import javax.inject.Inject
1110import androidx.datastore.preferences.core.edit
12- import androidx.datastore.preferences.core. preferencesDataStore
11+ import androidx.datastore.preferences.preferencesDataStore
1312import androidx.datastore.preferences.core.stringPreferencesKey
1413import androidx.datastore.preferences.core.Preferences
1514import kotlinx.coroutines.flow.Flow
You can’t perform that action at this time.
0 commit comments