Dmitry Romanov [JB]
02/10/2021, 10:25 AMAli Albaali
02/10/2021, 10:41 AMDirk Hoffmann
02/10/2021, 4:54 PMval rememberedScaffoldState: ScaffoldState = rememberScaffoldState(drawerState)
...
rememberedScaffoldState.drawerState.close()
I get
Suspend function 'close' should be called only from a coroutine or another suspend function
how to workaround that??Dirk Hoffmann
02/10/2021, 4:56 PMIconButton(onClick = scaffoldStateClick())
gives me:
The feature "unit conversion" is disabled
am a bit clueless on how to fix both...Shabinder Singh
02/10/2021, 5:37 PMShabinder Singh
02/10/2021, 6:26 PMArkadii Ivanov
02/10/2021, 9:32 PMbuild150
and build152
are broken due to https://github.com/JetBrains/compose-jb/issues/354 ? I can't compile for Android.Colton Idle
02/11/2021, 2:13 AMeygraber
02/11/2021, 5:58 AMAli Albaali
02/11/2021, 10:06 AMtheapache64
02/11/2021, 5:12 PMjava.lang.OutOfMemoryError: Metaspace
after spending sometime in the IDE. Here's the full stacktrace.
Is this expected? Any workaround for this?Shabinder Singh
02/11/2021, 8:29 PMColton Idle
02/12/2021, 12:24 AMimport androidx.compose.desktop.SwingPanel
I don't want this to be an x/y problem here. Can anyone point me in the right direction?
1. Does compose desktop actually support a webview? If so, maybe I missed that api completely?
2. If going the embeded swing route with a WebView is actually the best path forward, how do I get the import statement to resolve? I looked up if there is a maven artifact for swing in the same namespace as compose but came up empty handed.Glenn Martin
02/12/2021, 12:07 PMAnga Koko
02/12/2021, 11:38 PMGlenn Martin
02/13/2021, 6:28 AMScrollableColumn(modifier = Modifier.fillMaxSize()) {
FlowRow(
mainAxisSpacing = 32.dp,
crossAxisSpacing = 32.dp,
crossAxisAlignment = FlowCrossAxisAlignment.Center,
) {
getCard(0, "Redis")
getCard(1, "Prs-Mock")
getCard(2, "Searcher")
getCard(3, "DynamoDB")
getCard(0, "Redis")
getCard(1, "Prs-Mock")
getCard(2, "Searcher")
getCard(3, "DynamoDB")
}
}
I've replaced to Lazycolumn and flow row -> LazyRow and getting the following errors, @Composable invocations can only happen from the context of a @Composable function
Glenn Martin
02/13/2021, 6:29 AMArkadii Ivanov
02/13/2021, 12:28 PMKshitij Patil
02/14/2021, 8:42 AMYan Pujante
02/14/2021, 1:41 PMYan Pujante
02/14/2021, 6:50 PMgbaldeck
02/14/2021, 7:43 PMTheMrCodes
02/15/2021, 1:45 PMtheapache64
02/15/2021, 2:16 PMBig Chungus
02/15/2021, 4:59 PMBig Chungus
02/15/2021, 5:11 PMBig Chungus
02/15/2021, 5:56 PMTextField(
value = value,
onValueChange = {},
readOnly = true,
modifier = Modifier.clickable(role = Role.Button, onClick = {
expanded = !expanded
}),
trailingIcon = {
Icon(
imageVector = if (expanded) Icons.Default.KeyboardArrowUp else Icons.Default.KeyboardArrowDown,
contentDescription = "Localized description")
}
)
Am I doing something wrong?Messias Junior
02/15/2021, 11:00 PMYofou
02/16/2021, 4:01 PM@Composable
fun NavButton() {
Button(
onClick = { },
shape = CircleShape,
modifier = Modifier.size(50.dp),
colors = ButtonDefaults.buttonColors(
backgroundColor = Color.Gray.copy(.25f),
contentColor = Color.White
)
) {
// Text("Test")
}
}
https://i.gyazo.com/10d11bca3ece67959cc9a44ab6aa9667.png▾
Ryan
02/16/2021, 4:12 PM