Omnieboer
08/04/2021, 12:30 PMpackageMsi
from a linux context, so there goes the docker runner. I've been trying to get it done with a windows-docker executor, but that doesn't seem to be able to reach gradle, and I don't think a win-gradle image exists on Docker Hub (at least I couldn't find one).
I'm sorry if this has been asked before.Marcello Galhardo
08/04/2021, 1:46 PMNavDestination.createRoute
to use Parcelable
with Navigation Component when using the new Route System (String based) for Fragments/Composables? I understand that it is an internal API, and I’m not supposed to use it, so I’m coming here to find a better option before making a final decision (see the thread for more details).
I appreciate any help you can provide.Azam Khan
08/04/2021, 2:49 PMMike Speed
08/04/2021, 3:27 PM...
val loading = binding.loading
loading.setContent {
LoadingSpinner()
}
...
@Preview
@Composable
fun LoadingSpinner() {
if (viewModel.loadingState.value) {
CircularProgressIndicator()
}
}
in my viewmodel:
_loadingState.value = true
viewModelScope.launch {
doSomeLongTask()
_loadingState.value = false //or calling this at some later point
}
LoadingSpinner() is updated correctly when value == true, but then when I set it to false, LoadingSpinner does not get updated and so stays on screen.
Any help appreciated!alorma
08/04/2021, 5:36 PMColton Idle
08/04/2021, 6:22 PMAlexander Black
08/04/2021, 6:31 PMDropdownMenuItem(onClick = { /*TODO*/ },
modifier = Modifier
.indication(
interactionSource = remember { MutableInteractionSource() } ,
rememberRipple(color = Color.Red))) {
Text("Some Menu Item")
}
Nicholas Doglio
08/04/2021, 6:36 PMCaused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'Row$default' into
@androidx.compose.runtime.Composable public fun Error(): kotlin.Unit
Possible related issue: https://issuetracker.google.com/issues/189138228
Working with Compose in a small sandbox app works fine but as soon as I try to integrate it into our main app I get the above error when using any Composable that’s an inline function (Row
and Column
for example)
We started playing with Compose during the first RC and have seen it since then and continue to see it in todays 1.0.1 releaseColton Idle
08/04/2021, 7:44 PMandroidx.compose.ui.ui-1.1.0-alpha01
👀Colton Idle
08/04/2021, 9:09 PMZach Klippenstein (he/him) [MOD]
08/04/2021, 10:15 PMcomposeOptions {
kotlinCompilerExtensionVersion "…"
}
PHondogo
08/04/2021, 10:45 PMDominaezzz
08/04/2021, 10:47 PMDisposableEffect
) a Composition
in the skippableUpdate
parameter of ComposeNode
?Ink
08/04/2021, 10:47 PMRow() {
Canvas(modifier = Modifier.size(20.dp)) {
drawCircle(
color = Color.Gray,
center = Offset(x = 10f, y = 10f),
radius = size.minDimension / 4,
)
}
Canvas(modifier = Modifier.size(20.dp)) {
drawCircle(
color = Color.Gray,
center = Offset(x = 10f, y = 10f),
radius = size.minDimension / 4,
)
}
}
How Can I update color of specific circle based on index number?itnoles
08/05/2021, 1:36 AMColton Idle
08/05/2021, 3:27 AMMaxUt
08/05/2021, 7:43 AMnlindberg
08/05/2021, 8:49 AMTin Tran
08/05/2021, 10:46 AMMarko Novakovic
08/05/2021, 1:08 PMViewModel
? am using compose’s MutableState
but I see a lot of examples with Flow
but I don’t see any need for using Flow
to expose state in pure compose app. is Flow
used in app in transition from View
to Compose
to bridge the gap and use some of the existing code or Flow
is for some reason more favourable than MutableState
?PHondogo
08/05/2021, 1:23 PMAlexander Black
08/05/2021, 3:53 PMalorma
08/05/2021, 4:53 PMjunit.framework.AssertionFailedError: No tests found in com.alorma.coupons.CouponTicketTest
code in threadFlorian
08/05/2021, 6:05 PMmutableStateOf
holder.Chris Johnson
08/05/2021, 7:46 PMIntrinsics
in a custom layout because I want all my children to be the height of the largest child. Is there an easier way to solve this? I could potentially just use out of the box Layouts + Intrinsics but I'd like to try and solve it with a custom layout.PHondogo
08/05/2021, 9:16 PMSmorg
08/05/2021, 9:30 PMjava.lang.Class<ViewModel> has no zero argument constructor
error when using the hiltViewModel
function. Being stuck on this for over two hours now. I have added all the required libs and annotations but the error won’t go. Any help will be appreciated.Florian
08/05/2021, 9:42 PMcomposable(TodoScreen.TodoList.name) { navBackStackEntry ->
TodoListScreen(
[...]
addEditResult = navBackStackEntry.savedStateHandle.get<Int>(KEY_ADD_EDIT_RESULT)
)
}
As far as I see, I will always receive this result on every recomposition (like when the screen is rotated) causing to show feedback snackbars again.Florian
08/05/2021, 10:05 PMLazyColumn
not yet keep scroll position after config changes or is my setup just wrong?Alexander Black
08/05/2021, 11:22 PMAlexander Black
08/05/2021, 11:22 PMColton Idle
08/06/2021, 12:04 AMAlexander Black
08/06/2021, 3:43 AM