Mehdi Haghgoo
03/22/2021, 7:29 PMColton Idle
03/22/2021, 8:09 PMJakub Ledwon
03/22/2021, 10:36 PMRadioButtons
(to change between themese) with Boxes
(to present the main color of theme).
Everything is managed by a viewModel . In compose beta01 everythings works fine, but in beta02 after changing selected theme, other theme's color changes as well. Is there some sort of bug or am I doing somethings wrong? I prepared a simplified code snippet with screens in commentAbdalla Hassanin
03/22/2021, 10:44 PMTash
03/23/2021, 3:52 AMState
, and would like to keep track of the first & last item’s State
. For some reason having trouble wrapping my mind around this particular scenario 🧵 ⬇️knthmn
03/23/2021, 4:38 AMNavHostController.navigate()
? My database is backed by a String
primary key that can contain chars like ?
and /
.knthmn
03/23/2021, 8:34 AMModifier.nestedScroll
, I want the app bar to snap to a fully shown / hidden position after. Which method should I use to listen that the user has stopped scrolling?Slackbot
03/23/2021, 10:06 AMleosan
03/23/2021, 10:10 AMisEnabled
to an AbstractComposeView
? For instance I’m trying to make a Wrapper of a composable Button
like that:
My intention was to try to reuse some of the View’s API, otherwise I will have to deprecate every View’s methods so people unaware of how compose works don’t try to update the view using the View’s API
Code in the 🧵Shakil Karim
03/23/2021, 1:39 PMFarid Mrz
03/23/2021, 1:39 PMGeert
03/23/2021, 2:07 PMGabriel
03/23/2021, 4:02 PMcontent: @Composable MaterialDialog.() -> Unit
and this@MaterialDialog.content()
Is this stuff a Kotlinism or a Composism or something else completely? Can anyone link me to something describing what these things are doing here? I think it's saying content will be a lambda/function callable on MaterialDialog? But I'd like to read a bit more about itChachako
03/23/2021, 4:18 PMnavigation-transition
will appear soon.Shawn Tucker
03/23/2021, 5:04 PMLocalElevationOverlay.provides(null)
is not working. I still get elevation overlay on my surface. What am I missing?Spikey Sanju
03/23/2021, 6:53 PMFrancois Morvillier
03/23/2021, 7:18 PMBig Chungus
03/23/2021, 7:33 PMMateusz Apacki
03/23/2021, 8:28 PMShalaga44
03/24/2021, 5:01 AMSlackbot
03/24/2021, 5:44 AMAbhishek Dewan
03/24/2021, 5:44 AMDeepak Gahlot
03/24/2021, 5:45 AMSlackbot
03/24/2021, 6:34 AMOrhan Tozan
03/24/2021, 9:08 AMTlaster
03/24/2021, 9:59 AMcarbaj0
03/24/2021, 11:29 AMDaniele B
03/24/2021, 12:05 PMGabriel
03/24/2021, 12:36 PMjulioromano
03/24/2021, 2:18 PMLazyListState
type whilst composables that scroll using modifiers hold scroll state in the ScrollState
type.
Even though both types implement ScrollableState
the way they expose the current scroll position differs:
LazyListState
exposes firstVisibleItemIndex
and firstVisibleItemScrollOffset
for this purpose, while ScrollState
exposes value
instead.
This is making it more difficult to implement a generic solution that works with both e.g. a LazyColumn
and a Column
which uses the verticalScroll
modifier.
In case you’re wondering what I’d like to accomplish you’ll find more info in the thread.julioromano
03/24/2021, 2:18 PMLazyListState
type whilst composables that scroll using modifiers hold scroll state in the ScrollState
type.
Even though both types implement ScrollableState
the way they expose the current scroll position differs:
LazyListState
exposes firstVisibleItemIndex
and firstVisibleItemScrollOffset
for this purpose, while ScrollState
exposes value
instead.
This is making it more difficult to implement a generic solution that works with both e.g. a LazyColumn
and a Column
which uses the verticalScroll
modifier.
In case you’re wondering what I’d like to accomplish you’ll find more info in the thread.Scaffold
depending on whether its main content
has been scrolled all the way to the top or not.
I managed to do that by hoisting the `LazyColumn`'s LazyListState
up into the Scaffold
but I'd like a generic solution that works for any scrollable composable that could be hosted in the Scaffold's content. Do you think it's possible?Albert Chang
03/24/2021, 2:31 PMonPostScroll
when there's offset available in a downwards scroll, and decrease it in onPreScroll
when it's a upwards scroll.julioromano
03/24/2021, 3:03 PMTimo Drick
03/24/2021, 4:58 PMjulioromano
03/24/2021, 5:01 PM