aoriani
11/09/2022, 1:27 AMken_kentan
11/09/2022, 9:15 AMTower Guidev2
11/09/2022, 9:28 AMJan Skrasek
11/09/2022, 10:55 AMTinh
11/09/2022, 1:38 PMLisandro Di Meo
11/09/2022, 3:05 PModay
11/09/2022, 4:01 PMBrowseEventsHost(
eventsState = eventsState,
locationState = locationState,
bottomSheetState = bottomSheetState,
navController = navController,
filters = filters,
browseEventsCallbacks = object : IBrowseEventsCallbacks {
override fun navigateBack() {
onBackPressedDispatcher.onBackPressed()
}
override fun onEventClicked(event: Event) {
browseEventsViewModel.logEventClicked(event)
startActivity(eventIntentFactory.create(event.id))
}
I would like to show a Composable inside onEventClicked, do I setContent again and inside it show it?dave08
11/09/2022, 4:24 PMPer Jansson
11/09/2022, 6:35 PMDaniele Segato
11/09/2022, 7:08 PMModifier.imePadding()
with Scaffold
? (Material3)
If I use both the scaffold padding (PaddingValues
) and .imePadding()
in my screen the padding on the bottom is greater than it should be.
If I do not use the scaffold bottom padding and only use .imePadding()
the padding is correct when the ime is open but it is too little when it is close.
What's the proper way to use these APIs?
(btw why is WindowsInsets
not named LocalWindowsInsets
like other "Locals"?)Jasmin Fajkic
11/09/2022, 10:16 PMPaweł Cyroń
11/09/2022, 10:58 PMcurrentPage
is awful and get triggered way to often so I have made my own implementation. yet LaunchedEffect are called too often (not only when value is changed). I’m suspecting ViewPager issue in compose. Code in threadxxfast
11/10/2022, 12:19 AMStateflow
as State
with collectAsState()
; but is there a way to do the exact opposite? i.e get a flow update whenever a State
changes?Andy Himberger
11/10/2022, 3:30 AMxxfast
11/10/2022, 3:35 AMm3.NavigationBar
Whats the right way to apply windowInsetsPadding
to bottom NavigationBar
? I'm doing this right now
NavigationBar(
modifier = Modifier
.windowInsetsPadding(WindowInsets.navigationBars),
) {
pages.forEach { page ->
NavigationBarItem(..)
}
}
It looks all wrong 🤔Slackbot
11/10/2022, 4:53 AMStylianos Gakis
11/10/2022, 8:32 AMVersion 1.3.0 October 24, 2022
Important changes since 1.2.0
Behavior breaking change
Maximum supported elevation in dialogs and popups has been reduced to 8dp.
API Changes
Add a Pull-To-Refresh component to Compose (I29168).
Change parameter name from values to value in RangeSlider (I3b79a).
czuckie
11/10/2022, 11:10 AMe: java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.codegen.state.KotlinTypeMapper.<init>(org.jetbrains.kotlin.resolve.BindingContext, org.jetbrains.kotlin.codegen.ClassBuilderMode, java.lang.String, org.jetbrains.kotlin.config.LanguageVersionSettings, boolean, org.jetbrains.kotlin.codegen.state.IncompatibleClassTracker, org.jetbrains.kotlin.config.JvmTarget, boolean, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1, int, kotlin.jvm.internal.DefaultConstructorMarker)'
at com.google.devtools.ksp.processing.impl.ResolverImpl.<init>(ResolverImpl.kt:143)
at com.google.devtools.ksp.AbstractKotlinSymbolProcessingExtension.doAnalysis(KotlinSymbolProcessingExtension.kt:188)
K Merle
11/10/2022, 11:22 AMWindowCompat.setDecorFitsSystemWindows(window, false)
in latest compose version seems to add additional vertical padding to my screens. Anyone experienced same issue?Abdul Hafeez Sajid
11/10/2022, 11:56 AMLayout
with custom draggable and state handling. I am facing problem with Pager height. If I give specific height, then it works fine. But if I don’t give any height and use Modifier.wrapContentHeight()
then Pager does not show up. The items may have different heights that is why wrapContentHeight is must. I have tried to debug it and found out that, when no height is given then Constraints in Layout
have height set to zero hence placeables get zero height. Kindly help.
Code attached in the thread.Lisandro Di Meo
11/10/2022, 2:54 PMScaffold(/*...*/){
NavGraph(/*...*/)
}
Shouldn't it be better if we face it with a different approach, something like:
NavGraph(/*...*/){
composable(A){ Scaffold(...) }
composable(B){ ModalBottomSheet(...) }
...
}
Also by using the previous approach, we shouldn't have to move the scaffold state from one place to other, and each screen will know its own traits.Colton Idle
11/10/2022, 6:18 PMminLines
parameter to the BasicText
and BasicTextField
. It allows to set the minimum height of these composables in terms of number of lines (I24294, b/122476634)
• Added minLines
parameter into material and material3 Text, TextField
and OutlinedTextField
which allows setting the minimum height of the component in terms of number of lines (I4af1d)
• A bunch of "low level" compose-ui api changes. None of them make sense to me (as a user of compose ui) but might be worth checking out if you care about that sort of stuff
Check out Android Dev Summit Part 2, Form Factors playlist with tons of GREAT compose content included (compose insets, compose navigation, small mention of compose for TV, etc)
https://www.youtube.com/playlist?list=PLWz5rJ2EKKc9jBnpl83LH6oZc7nFIVSRqJordi Saumell
11/10/2022, 6:46 PMDavid Corrado
11/10/2022, 8:04 PMAndy Himberger
11/10/2022, 11:05 PMMarco Pierucci
11/11/2022, 12:02 AMpointerInteropFilter
But not sure why, maybe someone has a few pointers. 🧵onirutlA
11/11/2022, 4:17 AMzt
11/11/2022, 5:26 AMZaki Shaikh
11/11/2022, 7:24 AMZaki Shaikh
11/11/2022, 7:24 AMZach Klippenstein (he/him) [MOD]
11/11/2022, 3:30 PMZaki Shaikh
11/11/2022, 3:53 PMZach Klippenstein (he/him) [MOD]
11/11/2022, 4:43 PM