mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Add: Preview for IntPref DialogUI
This commit is contained in:
parent
bfdf2f8c34
commit
4257dc6849
@ -32,12 +32,14 @@ import androidx.compose.ui.platform.LocalFocusManager
|
|||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.text.input.ImeAction
|
import androidx.compose.ui.text.input.ImeAction
|
||||||
import androidx.compose.ui.text.input.KeyboardType
|
import androidx.compose.ui.text.input.KeyboardType
|
||||||
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.machiav3lli.fdroid.content.IntPrefsRanges
|
import com.machiav3lli.fdroid.content.IntPrefsRanges
|
||||||
import com.machiav3lli.fdroid.content.NonBooleanPrefsMeta
|
import com.machiav3lli.fdroid.content.NonBooleanPrefsMeta
|
||||||
import com.machiav3lli.fdroid.content.Preferences
|
import com.machiav3lli.fdroid.content.Preferences
|
||||||
import com.machiav3lli.fdroid.ui.compose.components.DialogNegativeButton
|
import com.machiav3lli.fdroid.ui.compose.components.DialogNegativeButton
|
||||||
import com.machiav3lli.fdroid.ui.compose.components.DialogPositiveButton
|
import com.machiav3lli.fdroid.ui.compose.components.DialogPositiveButton
|
||||||
|
import com.machiav3lli.fdroid.ui.compose.theme.AppTheme
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@ -119,3 +121,14 @@ fun IntInputPrefDialogUI(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Preview
|
||||||
|
@Composable
|
||||||
|
fun IntInputPrefDialogUIPrefview() {
|
||||||
|
val state = remember {
|
||||||
|
mutableStateOf(true)
|
||||||
|
}
|
||||||
|
AppTheme {
|
||||||
|
IntInputPrefDialogUI(Preferences.Key.NewApps, state)
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user