Se7eN
06/02/2021, 12:52 PMLaunchedEffect
supposed to relaunch on configuration change? If yes, is there something else I can use that doesn't relaunch on config changes?Hachemi Hamadi
06/02/2021, 1:36 PMText
component editable like TextField
?xxfast
06/02/2021, 2:20 PM1.0.0‑beta08
to drop with kotlin 1.5 support?Yuri Drigin
06/02/2021, 3:03 PMCrossfade
cannot be use inside Row scope ((Luis Mierez
06/02/2021, 5:05 PMArkadii Ivanov
06/02/2021, 5:15 PMkotlinCompilerVersion
setting from my app module's build.gradle
file, but I'm getting the following error:
This version (1.0.0-beta05) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version 1.4.31 which is not known to be compatible.
I'm using Kotlin 1.4.32
actually and AS Arctic Fox 2020.3.1 Beta 3
. If I keep the setting then the project compiles just fine. Would could be the issue?dimsuz
06/02/2021, 5:22 PMSurface
of my Composable. I suspect this is due to the fact that this Surface
has a semi-transparent color. Is this a current limitation? Or is this some other mechanizm which I've triggered and incorrectly use?
Please checkout screenshot and my composable structure in the thread.John O'Reilly
06/02/2021, 6:22 PM2.4.0-alpha01
we had
The KEY_ROUTE argument has been replaced with the route property on NavDestination, allowing you to call navBackStackEntry.destination.route directly.
It seems in today's alpha02 release that's no longer there? I might have missed it but I couldn't see in release notes what that's changed to?Tolriq
06/02/2021, 6:35 PM@Composable
fun loadIcon(
applicationInfo: ApplicationInfo?,
): State<ImageBitmap?> {
val context = LocalContext.current
return produceState(initialValue = null, applicationInfo) {
withContext(Dispatchers.Default) {
value = applicationInfo?.loadIcon(context.packageManager)?.toBitmap()?.asImageBitmap()
}
}
}
No more compiles with error
Type mismatch: inferred type is ImageBitmap? but Nothing? was expected
julioromano
06/02/2021, 9:47 PM.clickable()
modifiers applied to items in a LazyColumn
don’t work anymore.Card
and Surface
with clickable()
modifiers will stop working in beta08. See inside.Alexander Karkossa
06/02/2021, 10:02 PM1.0.0-beta08
and i found a strange issue. When i use my library, de.charlex.compose:revealswipe:1.0.0-beta04
(RevealSwipe), which implements a RevealSwipe
, i am not able to swipe the items after scrolling down in a LazyColumn
. I could fix it by setting key(myItem) {}
around the RevealSwipe
. Any ideas? In compose 1.0.0-beta06
everything worked fineColton Idle
06/03/2021, 12:17 AMe: This version (1.0.0-beta07) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version 1.5.10 which is not known to be compatible. Please fix your configuration (orIs there an easy way to figure out which dependency is pulling in beta07? (I updated to kotlin 1.5.10 and beta08 and I did a global search on 1.4.32 and beta07 and there are 0 occurances)but don't say I didn't warn you!).suppressKotlinVersionCompatibilityCheck
mattinger
06/03/2021, 12:28 AMNana Vong
06/03/2021, 7:09 AMNana Vong
06/03/2021, 9:43 AM@Composable fun Foo() {
val text: MutableState<String> = remember { mutableStateOf("") }
Button(onClick = { text.value = "00000000000" }) {
Text(text.value)
}
}
if my text is long ,Button's width will be long too. So ,Button will be Recomposed?Tin Tran
06/03/2021, 10:06 AMSURJEET SINGH RATHORE
06/03/2021, 10:18 AMNipun Rajput
06/03/2021, 10:54 AM1.0.0-beta08
? I am getting below error while upgradingJoey
06/03/2021, 12:51 PMdeviant
06/03/2021, 1:12 PMthis version (1.0.0-beta08) of the Compose Compiler requires Kotlin version 1.5.10 but you appear to be using Kotlin version 1.4.31 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don’t say I didn’t warn you!).
ps: we use kotlin 1.5.10 and compose beta8Hachemi Hamadi
06/03/2021, 1:30 PMPeter Mandeljc
06/03/2021, 2:09 PMAlex Bieliaiev
06/03/2021, 3:56 PMLoginInput
is supposed to be recomposed, because its position in the slot table is different. That seems not to be the case, according to the docs. So what am I missing here? Thank you in advance.MaxUt
06/03/2021, 4:34 PMChris Johnson
06/03/2021, 4:37 PMLazyColumn
and DIffUtil? Is this something that shouldn't be considered anymore since compose essentially acts as a diffUtil everytime the list changes?tylerwilson
06/03/2021, 5:34 PMkotlin-extension - Configuration for Compose related kotlin compiler extension
\--- androidx.compose.compiler:compiler:1.0.0-beta07
But it is unclear to me what this is? Anybody know this one?Billy Newman
06/03/2021, 7:08 PMval items by state.items
val scope = rememberCoroutineScope()
var itemCount by remember { mutableStateOf(state.items.value.size) }
LazyColumn(
state = listState,
modifier = Modifier.fillMaxHeight()
) {
item {
HeaderContent()
}
itemsIndexed(items) { index, item ->
ItemContent(item)
}
if (itemCount < items.size) {
scope.launch {
// items.size, not items.size - 1 to account for header
listState.animateScrollToItem(items.size)
}
itemCount = items.size
}
}
This works most of the time. However, every so often the scroll will end at the bottom or middle of the newly added item, not the top of the new item.André Thiele
06/03/2021, 7:32 PMScott Whitman
06/03/2021, 8:37 PMclass MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
SailingStartsTheme {
// A surface container using the 'background' color from the theme
// Surface(color = MaterialTheme.colors.background) {
Greeting("Android")
// }
}
}
}
}
Does anyone else have this issue?Rick Regan
06/03/2021, 9:20 PM