mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
输入url参数对话框
This commit is contained in:
@@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.AlertDialog
|
||||
import androidx.compose.material.Text
|
||||
import androidx.compose.material.TextButton
|
||||
import androidx.compose.material.TextField
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.MutableState
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
@@ -59,6 +60,10 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) {
|
||||
mutableStateOf(urlOption.useWebView())
|
||||
}
|
||||
urlOption.useWebView(useWebView.value)
|
||||
val method = remember {
|
||||
mutableStateOf(urlOption.getMethod() ?: "")
|
||||
}
|
||||
urlOption.setMethod(method.value)
|
||||
Column(Modifier.padding(6.dp)) {
|
||||
Row(Modifier.padding(3.dp)) {
|
||||
LabelledCheckBox(
|
||||
@@ -69,6 +74,14 @@ fun UrlOptionView(urlOption: AnalyzeUrl.UrlOption) {
|
||||
label = "useWebView"
|
||||
)
|
||||
}
|
||||
|
||||
TextField(
|
||||
value = method.value,
|
||||
onValueChange = {
|
||||
method.value = it
|
||||
},
|
||||
label = {
|
||||
Text(text = "Method")
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user