Michal Klimczak
06/11/2021, 9:41 AMAkram Bensalem
06/11/2021, 10:34 AMMarcin Mazurek
06/11/2021, 11:31 AMScaffold(
bottomBar = ...
When one of BottomNavigationItem's Layout contains NavHost it's crash when you select this BottomNavigationItem once and then the same item second timeJoey
06/11/2021, 11:55 AMste
06/11/2021, 11:57 AMCanvas
: compose-like approach, very customizable solution but it will be a pain for complex icons (this is what I'm currently doing)
2. Ship N drawables with different line thickness: not very customizable, increases app size, feels like a waste
3. ???Artur Schwarz
06/11/2021, 12:03 PMRodri Represa
06/11/2021, 12:54 PMmutableListOf<Int>
to track my calendar days which are selected in a period of time and then fill the square Grey.
When I select a new period of time, I first empty the mutableListOf and later I save on it my new days in order to react and show the Grey square animation.
The problem is that when I empty the mutableListOf and quickly select a new period of time, as you see in the beginning of the video, it seems that the mutableList has my old dates on cache? and then only the new days added to the period of time react to the change (the old dates animation doesn't trigger, you just see the square filled).
However if I select a new date, and wait some seconds to select the endDay, my animation is triggered in all the days, because the mutableListOf doesn't have any data saved.Danish Ansari
06/11/2021, 2:25 PMpaging-compose
for creating a grid and I found out that there is no items
function for LazyGridScope
that accepts lazyPagingItems: LazyPagingItems<T>
as there is one for LazyListScope
Basically I'm not able to use pagination for creating a grid view. Is there any workaround for it?itnoles
06/11/2021, 2:49 PMSe7eN
06/11/2021, 3:37 PMNavGraph
? I can pass the id
in a route but it would be great if I could do something like this:
SampleCategory.Buttons.samples.forEach { sample ->
composable(sample.id) {
sample.content()
}
}
Zun
06/11/2021, 4:11 PMJesse Hill
06/11/2021, 7:42 PMcomposable
for a route was being recomposed whenever the state inside my HiltViewModel changed. After thinking through it a bit I think I know the answer but wanted some confirmation before updating the post. I’ll put what I think is going on in the thread.tad
06/11/2021, 8:23 PMIndicationInstance
, but ContentDrawScope
doesn't allow for that.Adib Faramarzi
06/11/2021, 8:58 PMspencer
06/11/2021, 11:05 PMIndu
06/12/2021, 1:32 AMms
06/12/2021, 5:15 AMflowlayout
anytime soon?Adib Faramarzi
06/12/2021, 5:51 AMMayank Saini
06/12/2021, 7:20 AMColton Idle
06/12/2021, 12:39 PMText
that contains an email and I want to just make it clickable. Do I have to basically just set up something like this or is there something simpler that I'm missing?Shakil Karim
06/12/2021, 2:00 PMColton Idle
06/12/2021, 4:01 PMZun
06/12/2021, 4:29 PMinit
function? Context in threadAkram Bensalem
06/12/2021, 4:55 PMDaniele B
06/12/2021, 4:56 PM1.0.0-beta07
and 1.0.0-beta08
This is the code:
LazyColumn {
stickyHeader {
CountriesListHeader()
}
items(items = countriesListState.countriesListItems, itemContent = { item ->
CountriesListRow(
item = item,
favorite = countriesListState.favoriteCountries.containsKey(item.name)
})
}
In case countriesListItems
hasn’t changed but favoriteCountries
has changed:
• in beta07, items
recompose (and that’s what I would expect, as in CountriesListRow
the favorite
parameter depends on favoriteCountries
)
• in beta08, items
don’t recompose, as it seems Compose is just monitoring changes of countriesListItems
and not favoriteCountries
Is this a bug, or I should structure my code differently?Paul Woitaschek
06/12/2021, 7:19 PMPaul Woitaschek
06/12/2021, 7:58 PMCompositionLocalProvider(LocalContentAlpha provides ContentAlpha.high)
. But that's a lot of overhead and it feels like working against the system.chris-horner
06/13/2021, 8:33 AMColor.Transparent
on API 23 and API 27theapache64
06/13/2021, 8:46 AMfrankelot
06/13/2021, 3:08 PMfrankelot
06/13/2021, 3:08 PMRafs
06/13/2021, 4:08 PMModifier.drawBehind
frankelot
06/13/2021, 4:17 PMdrawBehind
canvas
to repeat the image 🤔for (x in 0..this.size.width.roundToInt() step 80) {
for (y in 0..this.size.height.roundToInt() step 80) {
drawCircle(
color = Color.Black,
center = Offset(x.toFloat(), y.toFloat()),
radius = 8f,
alpha = .1f
)
}
}
Rafs
06/13/2021, 5:02 PMfrankelot
06/13/2021, 5:03 PMNader Jawad
06/15/2021, 6:47 AM