Edward
07/07/2022, 4:41 AMallan.conda
07/07/2022, 6:28 AMPainter
and Icon
are unstable and keeping the function as non-skippable. Any ideas how else I could optimize my Coil Image Grid? Or does coil already able to optimize this somehow. It’s quite slowallan.conda
07/07/2022, 6:57 AMdefaultValue
cannot be dynamic? I had the idea of generating an id by default to identify a particular nested navigation scope and share an instance of a class among them.Stylianos Gakis
07/07/2022, 7:46 AMkotlinCompilerExtensionVersion
be targeting? I always thought it should be the compiler version, but on the docs it shows that it can be 1.3.0-alpha01
a version that right above doesn’t seem to come from the compiler dependency since it only has the 1.2.0 stable release.
Am I misunderstanding something or is this a documentation bug?nuhkoca
07/07/2022, 9:27 AMcontentPadding
depending on text length? Longer text lesser contentPadding or?Slackbot
07/07/2022, 9:40 AMGonzalo Renedo
07/07/2022, 2:04 PMTower Guidev2
07/07/2022, 2:45 PMStefan Oltmann
07/07/2022, 5:13 PMLazyVerticalGrid
with a lot of boxes in it (containing images, it's a photo app). Each Box has a Modifier.clickable { openElement(element) }
on it. If I remove this modifier my scroll speed is much faster. It seems to be a problem to create the lambda and modifier over and over again for each of the thousands of entries as a user scrolls by.
Is there any way I can solve this in a away without creating a lambda for each entry?Daniel Okanin
07/07/2022, 6:39 PMrestartable scheme("[androidx.compose.ui.UiComposable]") fun ShoppingCarouselCardItem(
stable card: ShoppingCarouselViewItem
stable index: Int
onClickListener: OnClickEvent? = @static null
unstable carouselVisibilityTrackerListener: VisibilityTrackerListener<BaseEntry>? = @static null
unstable onCarouselHidden: MutableLiveData<OnCarouselHidden>
Javier
07/07/2022, 7:17 PMSean Proctor
07/07/2022, 9:35 PMNathan Castlehow
07/08/2022, 1:54 AMjasu
07/08/2022, 6:44 AMPaul Woitaschek
07/08/2022, 7:30 AMonRoot().capturetoImage()
the image won’t be larger than the size of the screen.
I also tried wrapping it in a vertical scrollable column and then setting a test tag but the screenshot never gets larger than the screen sizeJavier
07/08/2022, 10:48 AMdorche
07/08/2022, 11:01 AMBottomSheetScaffold
is not rendering properly in Previews (only Preview as far as I can see) on androidx.compose.material:material:1.2.0-beta03
but it does on the previous version - androidx.compose.material:material:1.2.0-beta02
. More in 🧵kotlinforandroid
07/08/2022, 2:53 PMkey
and this does sadly not work. I think I know why (the item is not at the same "position" in the composable and thus can't be the same).
Code in thread. Any help is appreciated!Marco Pierucci
07/08/2022, 3:55 PM1.2.0
and the remaining libs on 1.0.5
.Or does this require a min version (I.E 1.1.0) to work? Cheers!Jorge Domínguez
07/08/2022, 4:31 PM@Immutable
data class CustomColors(
val content: Color,
val component: Color,
val background: List<Color>
)
Then I'd use a CompositionLocal
inside my custom theme to provide these colors. However, looking at different community samples I noticed that they do it like this:
class AppColors(
primary: Color,
secondary: Color
)
var primary by mutableStateOf(primary)
private set
var secondary by mutableStateOf(secondary)
private set
fun copy(
primary: Color = this.primary,
secondary: Color = this.secondary
): AppColors = AppColors(
primary,
secondary
)
fun updateColorsFrom(other: AppColors) {
primary = other.primary
secondary = other.seconday
}
}
Basically replicating the MaterialTheme
Colors
class implementation. My question is which approach should I follow? I understand that by using mutableStateOf()
I can guarantee that Composables will react to individual color updates, but what if I know that my color scheme will never change at runtime? Is that the only reason to use mutableStateOf()
? Any thoughts on this will be appreciatedoday
07/08/2022, 4:33 PMDaniel Okanin
07/08/2022, 4:44 PM@Immutable
data class ImmutableHolder<T>(val item: T)
and I see that metrics:
unstable class PhotoViewModelItem {
unstable val imageDescriptor: ImmutableHolder<ImageDescriptor>?
stable val isSaved: MutableState<Boolean>
stable val photoType: PhotoType?
stable val tagsCount: Int
<runtime stability> = Unstable
}
========
runtime class ImmutableHolder {
runtime val item: T
<runtime stability> = Parameter(T)
}
mattinger
07/08/2022, 5:52 PMTravis Griggs
07/08/2022, 11:50 PMBrendan Campbell-hartzell
07/09/2022, 3:01 AMR
seems to be available, but it doesn't recognize .string
or .drawable
outside of an Activity class.Marcin Wisniowski
07/09/2022, 9:20 AMNavigationBarItem
of a Material 3 bottom navigation bar? My initial attempt was to just wrap it in a Box
and overlay the badge, but it seems NavigationBarItem
has to be placed directly in the NavigationBar
, so I cannot do that.dimsuz
07/09/2022, 10:18 AMIconButton
(on the screenshot it's inside a Button
content slot) has "rounded" tap area. When rendered using Compose Desktop I can actually misclick with the mouse in the corner leading to the whole button being pressed while I'd like a "dropdown" area to react instead. Can I somehow make it to be square?nuhkoca
07/09/2022, 11:43 AMSlackbot
07/09/2022, 5:25 PMSlackbot
07/09/2022, 7:10 PM