Florian
08/21/2021, 11:10 AMclipToPadding = false
in Compose that avoids a LazyRow getting cut off by the container's padding?Florian
08/21/2021, 11:39 AMSpacer
with the size of an Icon
but there doesn't seem to be adDefault value for this (like we have for many other standard composables). So what should I use here?
Icon(
Icons.Default.Check,
contentDescription = stringResource(R.string.task_completed),
tint = MaterialTheme.colors.primary,
)
Ashu
08/21/2021, 11:43 AMonSizeChanged
modifier provides size values in IntSize
, and the onSizeChanged
lambda is not a composable function either. How can I get size in Dp
inside onSizeChanged
modifier lambda.??Stylianos Gakis
08/21/2021, 12:12 PMSideEffect {}
triggers more than 10 times a second forever without anything changing on the screen.
More details in thread 🧵Kaustubh Patange
08/21/2021, 2:01 PMDialog
? Like dialog enter & exit animation with AnimatedVisibility
or something else?Florian
08/21/2021, 3:11 PMnavigation-compose
optional? With separate app bars per screen it looks pretty bad.Florian
08/21/2021, 3:12 PMalpha07
tapping a selected bottom nav item again does nothing anymore. Isn't the expected behavior to reload that screen or am I wrong? If it isn't, how can I achieve this behavior?Mehdi Haghgoo
08/21/2021, 3:56 PMRafiul Islam
08/21/2021, 4:13 PMtheapache64
08/21/2021, 5:14 PMrememberUpdateState
? 🤔 Maybe “with and without rememberUpdateState
”Jason Inbody
08/21/2021, 6:59 PMChuck Stein
08/21/2021, 11:17 PMAnton Dmytryshyn
08/22/2021, 2:40 AMAshu
08/22/2021, 8:00 AMModifier.onSizeChanged
(or globally positioned) and the other one is to use BoxWithConstraints
, but I am not sure when to use which. Can someone provide examples of use-cases of both of these. The examples should be such that only one of these is a perfect fit for that scenario. Thanks :)Rafiul Islam
08/22/2021, 9:37 AMval name = mutableStateOf("")
instead of using this and viewmodel.name.observeAsState("") in UI.
private val _name = MutableLiveData("")
val name: LiveData<String> = _username
rajesh
08/22/2021, 10:13 AMindex?.let {}
block. What are the alternatives?Amin Bahiraei
08/22/2021, 12:07 PMAnton Dmytryshyn
08/22/2021, 6:28 PMswipeableState
and Modifier.swipeable
. I would like to confirm If I am missing something before filing a bug. Code in 🧵Nthily
08/22/2021, 6:59 PMScaffold
(bottom navigation bar), there are three Screens inside, but I have another Screen which is not composed inside Scaffold
, how should I use NavHost
to do it? I tried to use Nested Navigation
in NavHost
, but it doesn't display the Screen inside Scaffold
properly.robnik
08/22/2021, 7:58 PMFlorian
08/22/2021, 11:16 PMSurface
but the text doesn't always have the correct color in dark mode for some people (it works on my testing devices)rnett
08/23/2021, 6:42 AMLocalDensity
and onGloballyPositioned
, but this seems like it would be very sub-optimal. Is there a way to do this built in, or using a custom layout? I could not find a way to alter the density in a custom layoutDmitrii Smirnov
08/23/2021, 7:34 AMTgo1014
08/23/2021, 8:20 AMrsktash
08/23/2021, 8:30 AMFocusRequester.freeFocus()
method. When we call freeFocus the textfield releasing focus but when we switch to another app and come back again the keyboard is appearing again
As a workaround I’m calling FocusManager.clearFocus()
instead of FocusRequester.freeFocus()
iamraghavawasthi
08/23/2021, 9:05 AMtheapache64
08/23/2021, 9:48 AMarguments?.getString
,which userId
should be used? red or yellow? and what abt navArgument
? 🤔Ernestas Balčiūnas
08/23/2021, 12:30 PMonView(withContentDescription(BottomItem.Notifications.contentDescription)).perform(click())
does not find item and view hierarchy does not show any of bottom bar items as identifiable itemdarkmoon_uk
08/23/2021, 12:53 PMjava.lang.AssertionError: Unexpected field without property myapp.MyConfig.$stable
☝️ Can't find this assertion type mentioned anywhere on Slack, Google or YouTrack - is there a prize for catching a new one? 😅
Minimal reproduction project included in raised YouTrack Issue ✅
❓ Anyone know what this $stable
field is, for any clues how the issue might be worked-around?Marcin Środa
08/23/2021, 1:26 PMMarcin Środa
08/23/2021, 1:26 PMRow {
Text(
text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Icon(
imageVector = Icons.Filled.ArrowRight,
contentDescription = "Icon",
)
}
Adam Powell
08/23/2021, 1:40 PMModifier.weight(1f, false)
on the Text
. That will request the Text
be measured after unweighted children.Marcin Środa
08/23/2021, 4:38 PM