Daniel Candeias
07/09/2021, 10:23 AMfitsSystemWindows
flag? The TopAppBar
is being displayed below status bar, and needs to be shift below device status bar.dimsuz
07/09/2021, 10:50 AM15dp
, but lineHeight is 24dp
. And that's used across all screens (UiKit).
How would you encode this universally with Compose? TextStyle.lineHeight
works only on paragraphs, and setting Modifier.height(24.dp)
on Text
doesn't center it vertically inside. So far the only solution that works is having a Box
around the text, but that feels like rather verbose solution... or not?
UPD. screen shot in the threadWalter Berggren
07/09/2021, 11:14 AMRow
with AnimatedVisibility
, expandHorizontally
, and shrinkHorizontally
. shrinkHorizontally
works just fine, but expandHorizontally
unexpectedly moves the content vertically too. If I lock the row height to the same height as the items, the item doesn’t move as much but it still jiggles a bit. Am I missing something or is this a bug?lhwdev
07/09/2021, 2:13 PMDialog
under the system decorators(status bar etc.)?
I enabled setDecorFitsSystemWindows
and I want to implement full screen dialog. I saw in 1.0.0-rc01
usePlatformDefaultWidth
is added so I can fit full width and height(excluding decors) but cannot fully implement full screen dialog.Jan
07/09/2021, 2:24 PMYASAN
07/09/2021, 8:05 PMLazyColumn
? Using LazyVerticalGrid
throws an exception which says I cannot use two scrollable layouts in one direction & I cannot find a non scrollable version of Grid
to use.
I do not want to grid scroll independently, I just want to put a grid inside my LazyColumn
. I know I can manually implement it using Rows & Columns but I am trying to avoid that especially since my grid is adaptive and the number of items on each row depend on the device.Rob
07/09/2021, 8:41 PMChuck Stein
07/09/2021, 9:59 PMfreddiewang
07/10/2021, 2:06 AMComposePath
directly? I would like to draw multiple paths with different transform matrices (including scale and rotation). but I am not sure how to draw it correctly in ComposeNamig Tahmazli
07/10/2021, 9:47 AMBoxWithConstraints
composable. The closure that is being passed to it gets called multiple times with the height being different values each times. There is no animation or no state that can cause it to be recomposed.
P.S. I am using 1.0.0-rc01
version of compose.
The code and stack trace in 🧵chansek
07/10/2021, 12:06 PMDaniele Segato
07/10/2021, 12:46 PMraenardev
07/10/2021, 4:31 PMfillMaxSize
modifier, while box also has verticalScroll
.
As soon as box has scroll, its child column can no longer be at max size. Is this expected? Feels like a bug to me.
Screenshots and code in threadKarthick
07/10/2021, 5:23 PMTiago Nunes
07/10/2021, 11:30 PMval lazyListState = rememberLazyListState()
Here lazyListState
only has the properties firstVisibleItemScrollOffset
and firstVisibleItemIndex
.
The firstVisibleItemScrollOffset
resets to 0 after each item scroll.
I know I can do firstVisibleItemScrollOffset + firstVisibleItemIndex ª itemHeight
, but sometimes getting the itemHeight
is tricky or impossiblePrashast Rastogi
07/11/2021, 3:56 AMsuhas
07/11/2021, 10:58 AMFoso
07/11/2021, 2:11 PMArchie
07/11/2021, 2:14 PMState
holder for the font size? Just would want to be sure that this is the correct way since with `View`s (Correct me if I’m wrong), animating the font size directly isn’t the suggested (optimize) way of doing it.YASAN
07/11/2021, 6:06 PMDialog
when the user clicks on an item in a LazyColumn
. Is there a way to make the Dialog
's position depend on the items position?
Basically showing the dialog above/below the item instead of in the center of the screen.miqbaldc
07/12/2021, 1:20 AMPeter Mandeljc
07/12/2021, 7:53 AMAyfri
07/12/2021, 8:01 AMMichal
07/12/2021, 10:45 AMShabinder Singh
07/12/2021, 11:09 AMRafael Santiago
07/12/2021, 11:18 AMKareem Waleed
07/12/2021, 11:32 AMfun map(name: String): @Composable ()->Unit
. I need to generate this function using KotlinPoet
but I can’t add @Composable
to the return type, any clues how to do it ?Artur Schwarz
07/12/2021, 12:01 PMizyaboi
07/12/2021, 1:22 PMColton Idle
07/12/2021, 1:25 PMpaddp
and weight
with no luck. Curious if there's something I have to enable or something? Using latest bumblebeeColton Idle
07/12/2021, 1:25 PMpaddp
and weight
with no luck. Curious if there's something I have to enable or something? Using latest bumblebeeShakil Karim
07/12/2021, 1:37 PMcomp
and prev
all the time, not sure about paddp and weight