Steve
05/12/2021, 10:56 AMval interactionSource = remember { MutableInteractionSource() }
val focused = interactionSource.collectIsFocusedAsState()
in the dekstop version to find if the TextField has the focus?Jiri Bruchanov
05/12/2021, 8:46 PMMinecraaftt
05/13/2021, 3:30 AMKirill Grouchnikov
05/15/2021, 4:05 AMJacob Bosco
05/16/2021, 5:23 AMMinecraaftt
05/16/2021, 10:08 PMTlaster
05/17/2021, 10:29 AMflutter create
does ?Dr ET
05/17/2021, 4:16 PMDirk Hoffmann
05/17/2021, 8:14 PM@Composable
fun VanillaRootContent() {
val floatingPopup: MutableState<Boolean> = mutableStateOf(true)
// Card(Modifier.size(350.dp, 175.dp)) {
Column(
Modifier.border(1.dp, MaterialTheme.colors.onBackground).background(MaterialTheme.colors.secondary)
) {
Footer(floatingPopup)
val verticalScrollState = rememberScrollState(0)
Box(Modifier.fillMaxWidth()) { // <-- remove
Column(modifier = Modifier.verticalScroll(verticalScrollState)) {
for (i in 1..16) {
Text("LAST$i", style = MaterialTheme.typography.body2)
}
}
VerticalScrollbar( // <-- remove
adapter = rememberScrollbarAdapter(verticalScrollState),
modifier = Modifier.align(Alignment.CenterEnd),
style = LocalScrollbarStyle.current.copy(unhoverColor = Color.Gray.copy(alpha = 0.5F))
)
} // <-- remove
Footer(floatingPopup)
}
// }
}
@Composable
private fun Footer(floatingPopup: MutableState<Boolean>) {
Row(Modifier.border(2.dp, Color.LightGray), verticalAlignment = Alignment.CenterVertically) {
Spacer(Modifier.weight(1f))
Text("floatingWithCursor", Modifier.padding(2.dp), style = MaterialTheme.typography.body2)
Checkbox(
floatingPopup.value,
onCheckedChange = { floatingPopup.value = !floatingPopup.value },
colors = CheckboxDefaults.colors(checkedColor = MaterialTheme.colors.onBackground)
)
}
}
SrSouza
05/17/2021, 8:15 PMSrSouza
05/17/2021, 11:08 PMThe provided plugin androidx.compose.compiler.plugins.kotlin.ComposeComponentRegistrar is not compatible with this version of compiler
[full stacktrace in thread & pom]Skovisen
05/18/2021, 9:50 PMBruno Blazinc
05/19/2021, 1:39 PMnotarizeDmg
task), but I keep getting this error:
Your Apple ID account is attached to other providers. You will need to specify which provider you intend to submit content to. Please contact us if you have questions or need help. (1627)
I have asked the account holder to create the Developer ID certificate, but I have finished the rest of the steps(create App ID, create app-specific password) with my own account. Anyone know what could be the issue?SrSouza
05/19/2021, 1:49 PMBruno Blazinc
05/20/2021, 8:59 AMlibjli.dylib
packaged inside the the app(_full path inside app is.app/Contents/runtime/Contents/Home/lib/libjli.dylib_).
The error is:
not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs
It seems to me that the file is related to the Java JDK so I was wondering if somebody could point me to the JDK that is known to work so I can test it.kevin
05/20/2021, 10:30 AMDaniele B
05/20/2021, 5:32 PMlazt omen
05/21/2021, 11:38 AMDirk Hoffmann
05/21/2021, 3:54 PM@Composable SplitPane
will this (or something similar) be available in compose-desktop?
(why isn't it already if it is there?)
just asking ... not complaining.Kirill Grouchnikov
05/21/2021, 5:51 PMDaniele B
05/22/2021, 5:31 PMScaffold
just an Android thing? Is there an equivalent on Desktop and Web?lazt omen
05/22/2021, 9:13 PMsonder-joker
05/23/2021, 7:05 AMron
05/23/2021, 12:47 PMChristian Babsek
05/24/2021, 9:50 AM.onKeyEvent
, nor with .shortcuts
. Thank you very muchDirk Hoffmann
05/24/2021, 11:54 AMScaffold
.
On putting in only unbounded content Components (like just a single Text()
still the surface is "eating up" all available width and height.
Why is this?
(fully self-contained minimal executable code in the thread -->)Erlan Amanatov
05/24/2021, 4:02 PMdrawer
in Scaffold
or ModalDrawerLayout
? It takes almost all screen when openedDenis Capkovic
05/24/2021, 5:23 PM0.4.0-build209
.Sololo
05/25/2021, 5:51 AMOutlinedTextField(
modifier = Modifier.fillMaxWidth(),
value = text,
onValueChange = { text = it },
label = { Text("please input sth.") },
trailingIcon = {
Icon(Icons.Filled.Delete, contentDescription = "", modifier = Modifier.clickable(onClick =
}))
}
)
Kirill Grouchnikov
05/25/2021, 12:13 PM0.4.0-build210
is out with support for Kotlin 1.5.0Kirill Grouchnikov
05/25/2021, 12:13 PM0.4.0-build210
is out with support for Kotlin 1.5.0Igor Demin
05/25/2021, 1:58 PM0.4.0-build211
with support for Kotlin 1.5.10 🙂Colton Idle
05/25/2021, 6:32 PMIgor Demin
05/25/2021, 6:35 PMDirk Hoffmann
05/25/2021, 11:42 PMonFocusChanged = { focusState ->
visible = focusState == FocusState.hasFocus
},
(has been FocusState.Active
)
Funnily IDE gives me code completion for hasFocus
but still pretends that it does not exist:
Unresolved reference: hasFocus
any ideas?Igor Demin
05/26/2021, 7:54 AMbut still pretends that it does not existYou should use this:
visible = focusState.hasFocus
hasFocus
is not a static field 🙂