Ravi
05/17/2021, 11:00 PMZach Klippenstein (he/him) [MOD]
05/17/2021, 11:08 PMButton
that interacts with the focus system.Fabio
05/18/2021, 12:35 AMAnimatingCircleTests
from the Rally
sample app, and after creating an emulator with 420 dpi I can't seem to troubleshoot the reason the tests are failing. According to the logs I tried creating there should be temporary files created at /data/data/com.example.compose.rally/files
but that folder seems to never get created, so the question is
• how should I compare the golden image to the actual screenshot generated during the test?Abhishek Dewan
05/18/2021, 1:52 AMHUONG
05/18/2021, 4:10 AMTlaster
05/18/2021, 4:15 AMjava.lang.IllegalStateException: LayoutCoordinates androidx.compose.ui.node.InnerPlaceable
after enabling accessibilty service when using compose beta05? Full stacktrace in threadQuentin Dommerc
05/18/2021, 6:45 AMNgenge Senior
05/18/2021, 8:31 AMval lazyPagingNotes = viewModel.notes.collectAsLazyPagingItems()
iamthevoid
05/18/2021, 9:01 AMcolor
parameter in each TextStyle
? I see next options
1. use resources and separate colors by folders. Good for theming, because all happens authomatically, but i don’t understand yet how to create Color from resource without @Composable colorResource
2. use colors preset from kotlin code. In this case all variants that i can imagine leads multiple if-else cases
Please, say, maybe i somehow skipped some obvious solution?nitrog42
05/18/2021, 9:47 AMTin Tran
05/18/2021, 10:23 AMGuilherme Delgado
05/18/2021, 11:44 AMjava.lang.NullPointerException: Attempt to invoke virtual method 'androidx.navigation.NavDestination$DeepLinkMatch androidx.navigation.NavGraph.matchDeepLink(androidx.navigation.NavDeepLinkRequest)' on a null object reference
my setup is:
setContent {
val navController = rememberNavController()
NavHost(navController, startDestination = NavRouting.Home.destination) {
composable(NavRouting.Home.destination) { ... }
...
}
navigationManager.commands.collectAsState().value.also { command ->
if (command.destination.isNotEmpty()) {
navController.navigate(command.destination) { launchSingleTop = true }
}
}
}
Regarding navigation events with MutableStateFlow
I was inspired by Joe Birch post.
What am I doing wrong? 🤔 Thanks.joney
05/18/2021, 12:11 PMLazyColumns
. All columns should receive the same scroll delta, regardless of where the user input came from. Is nestedScroll()
the right thing to use?Deepak Gahlot
05/18/2021, 1:06 PMnatario1
05/18/2021, 1:41 PMMichal Klimczak
05/18/2021, 3:12 PMGuilherme Delgado
05/18/2021, 3:54 PMScaffold
with a BottomAppBar
(because I want the cutoutShape effect) and a few BottomNavigationItem
(this also happened when I had BottomNavigation
as a parent instead of BottomAppBar
) and the problem is there’s no “selected” effect on the menu items. I’ve checked and the var is being changed accordingly, but I see no UI change. To test it I did this (to my BottomNavigationItem
icon
and label
):
colorFilter = ColorFilter.tint(MaterialTheme.colors.onBackground.copy(alpha = if (isSelected) 1f else .5f)),
and it works.
What am I missing to get this working properly with the selected
property? Or the selected state is not meant for the item (icon and label)? Thanksste
05/18/2021, 6:04 PMModifier.zIndex
imply a performance penalty?julioromano
05/18/2021, 7:02 PMCicero
05/18/2021, 7:07 PMpublic fun NavGraphBuilder.composable(
route: String,
arguments: List<NamedNavArgument> = emptyList(),
deepLinks: List<NavDeepLink> = emptyList(),
content: @Composable (NavBackStackEntry) -> Unit
) {
I was recently thinking about a way to make it more sure that all the variables would be more involved in a way that we could assure correct navigation.
This came from a colleagues question about “if the route was different than the” called navigation path:
const val toTest = "$TEST/{$TEST_VALUE}"
fun test(testValue: Int) {
navController.navigate("$TEST/$testValue")
}
Because of this I was thinking if we could have an object that would make this a more sure process. Does it make sense? Is my process incorrect? Accepting suggestions 🙂
My plan now would be to overwrite this NavGraphBuilder.composable function in a way that it would receive this object and that I could use this object instead of this loose variables 🙂CLOVIS
05/18/2021, 7:32 PMjulioromano
05/18/2021, 7:33 PMe: 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.0 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
streetsofboston
05/18/2021, 7:36 PMalorma
05/18/2021, 7:51 PMAnna-Chiara Bellini [G]
05/18/2021, 7:53 PMjulioromano
05/18/2021, 8:16 PMJohn O'Reilly
05/18/2021, 8:30 PMRavi
05/18/2021, 9:22 PMAnimatedVisibility(visible = true, initiallyVisible = false, enter = fadeIn()) { //<=beta06
initiallyVisible
is removed in beta07
@ExperimentalAnimationApi
@Composable
fun AnimatedVisibility(
visible: Boolean,
modifier: Modifier = Modifier,
enter: EnterTransition = fadeIn() + expandIn(),
exit: ExitTransition = shrinkOut() + fadeOut(),
content: @Composable() AnimatedVisibilityScope.() -> Unit
) {
val transition = updateTransition(visible)
AnimatedEnterExitImpl(transition, { it }, modifier, enter, exit, content)
}
Colton Idle
05/18/2021, 10:22 PMFunkyMuse
05/18/2021, 10:41 PMFunkyMuse
05/18/2021, 10:41 PMZach Klippenstein (he/him) [MOD]
05/18/2021, 10:42 PM