Daniel
03/01/2021, 7:05 PMPointerInputScope.awaitFirstDown
should have an inverse, but I wanted to check if anyone saw anything obvious I was missing first.
private suspend fun PointerInputScope.awaitChangedToUp(id: PointerId) {
awaitPointerEventScope {
do {
val event = awaitPointerEvent().changes.fastFirstOrNull { it.id == id }
event?.consumeAllChanges()
} while (event?.changedToUp() != true)
}
}
Gabriel
03/01/2021, 7:19 PMSimone Summo
03/01/2021, 7:56 PMTony Kazanjian
03/01/2021, 9:03 PM.scrollable()
, or else, y'know, anywhere? Looks like I would need a custom implementation of ScrollableState
interface for the modifierIssa
03/01/2021, 9:33 PMbeta01
and I am having troubles figuring out what happened to SwipeableConstants.DefaultAnimationSpec
? I couldn’t find anything relevant in the release notes or maybe I overlooked it. Does anyone knows where to find it? previously it was in material
artifact.
Thanks in advanceGabriel
03/01/2021, 9:58 PMjava.lang.ArrayIndexOutOfBoundsException: length=5120; index=-2
at androidx.compose.runtime.SlotTableKt.groupSize(SlotTable.kt:2558)
Sam
03/01/2021, 10:07 PMonActive
and onDispose
? We went from clear semantic names to DisposableEffect
and i have no idea what to pass in as a parameter..Jordi Saumell
03/01/2021, 10:09 PMPiotr Prus
03/01/2021, 10:28 PMLazyVerticalGrid
. So far, no luck. contentpadding is used for padding around whole lazyGrid, not individual item. In LazyColumn
, there is a parameter called verticalArrangement which can be used to add spacer between elements, but how can I do that for Grid?Daniel
03/01/2021, 10:52 PMZach Klippenstein (he/him) [MOD]
03/02/2021, 12:04 AMIsaac Udy
03/02/2021, 12:15 AMknthmn
03/02/2021, 4:38 AMonCreate
and onDestroy
(and as long as it is in scope). Is there something I can do to tie it to onStart
and onStop
?Spikey Sanju
03/02/2021, 6:36 AMJetpack compose navigation
component do animation
on screen transition
?... Like Slide in left, slide out right?Samir Basnet
03/02/2021, 8:59 AMMehdi Haghgoo
03/02/2021, 9:11 AMallan.conda
03/02/2021, 9:11 AMjulioromano
03/02/2021, 10:18 AMNavController
from Activity.onNewIntent()
?FunkyMuse
03/02/2021, 11:22 AMStylianos Gakis
03/02/2021, 12:05 PMBottomSheetScaffold
provides, just have it appear at let's say 30% of the screen and be able to swipe it down again. After trying to search for it, or even trying out some ideas myself I feel like I very often end up in dead-ends (and not just this bottom sheet idea, anything non-trivial I try to achieve). This is not something that I had experienced when working with non-compose Android before due to the massive amount of information that there is online. Any advice on how to approach this?Rasul Aghakishiyev
03/02/2021, 12:43 PMzoha131
03/02/2021, 1:01 PMEric Martori
03/02/2021, 1:15 PMnavigation-compose
has dependencies to non-compose Android libraries. Ideally a Compose navigation library should be agnostic of the underlying platform, right? Is there any alternative that doesn't depend on Android code to implement the navigation?Archie
03/02/2021, 1:28 PMwiktorl4z
03/02/2021, 1:50 PMLukasz Burcon
03/02/2021, 1:51 PMOnBackPressedDispatcher
doesn’t seem to helpMichal Jezierski
03/02/2021, 1:59 PMArchie
03/02/2021, 3:30 PMfooter
to a LazyColumn
so that if the items inside a LazyColumn
doesn't consume all available space, the footer
will be pinned at the bottom of the LazyColumn
but if the items fill all the available space, the footer
would act as a normal LazyColumn
item?Colton Idle
03/02/2021, 4:06 PMrsktash
03/02/2021, 4:44 PMPath.op
methods (androidx.compose.ui.graphics.Path
).
The method is ignoring last param options. All of them difference
, intersect
reverseDifference
doing union
pathrsktash
03/02/2021, 4:44 PMPath.op
methods (androidx.compose.ui.graphics.Path
).
The method is ignoring last param options. All of them difference
, intersect
reverseDifference
doing union
pathromainguy
03/02/2021, 5:09 PMrsktash
03/02/2021, 5:09 PMNader Jawad
03/02/2021, 5:10 PMrsktash
03/02/2021, 5:11 PMromainguy
03/02/2021, 5:14 PMrsktash
03/02/2021, 5:17 PMdector
03/02/2021, 5:28 PMaddRect()
instead of drawRect()
🙂Nader Jawad
03/02/2021, 5:29 PMromainguy
03/02/2021, 5:30 PMrsktash
03/02/2021, 5:32 PMNader Jawad
03/02/2021, 5:35 PMModifier.drawWithCache
as it breaks up the drawing operation into 2 steps that can be used to conditionally allocate and cache paths instead of allocating them on each draw call. Because the initial scope of drawWithCache isn't a DrawScope it makes it more difficult to call into drawing APIs instead of path operationsrsktash
03/02/2021, 5:36 PMModifier.drawWithCache
Daniel
03/02/2021, 5:45 PMNader Jawad
03/02/2021, 5:47 PMDaniel
03/02/2021, 5:48 PMDaniel
03/02/2021, 5:58 PMNader Jawad
03/02/2021, 5:59 PMDaniel
03/02/2021, 6:04 PMNader Jawad
03/02/2021, 6:10 PM