ursus
08/14/2020, 8:39 PMVinay Gaba
08/14/2020, 8:45 PMVinay Gaba
08/14/2020, 8:46 PMVinay Gaba
08/14/2020, 8:46 PMVinay Gaba
08/14/2020, 8:46 PMJavier
08/14/2020, 8:55 PMVinay Gaba
08/14/2020, 8:56 PMIan Lake
08/14/2020, 9:32 PMHalil Ozercan
08/14/2020, 9:52 PMLazyColumnFor
, LazyRowFor
and many other scrolling components don't share their scroll state. I haven't found a way to completely restore a state for a composable which has scrolling child components.
That's why, if I scroll down a list of items and visit the detail screen for one of them and come back, scroll state will be completely lost. Would it be possible to use actual Stack
composable to render all backstack from a NavHost?Leland Richardson [G]
08/14/2020, 9:55 PMLeland Richardson [G]
08/14/2020, 9:55 PMursus
08/14/2020, 9:59 PMLeland Richardson [G]
08/14/2020, 10:00 PMursus
08/14/2020, 10:01 PMreplace
but then you need it for dialogs and crapLeland Richardson [G]
08/14/2020, 10:01 PMval myVm = viewModel<MyViewModel>()
then it will have the lifetime that you wantLeland Richardson [G]
08/14/2020, 10:02 PMLeland Richardson [G]
08/14/2020, 10:04 PMursus
08/14/2020, 10:08 PMursus
08/14/2020, 10:22 PMLeland Richardson [G]
08/14/2020, 11:21 PMursus
08/14/2020, 11:52 PMLeland Richardson [G]
08/14/2020, 11:53 PMursus
08/14/2020, 11:53 PMIan Lake
08/15/2020, 12:30 AMIan Lake
08/15/2020, 12:31 AMgildor
08/15/2020, 1:21 PMRicardo C.
08/15/2020, 1:39 PMval vm = viewModel<XViewModel>()
inside the composable, we should be passing view model factories to the composable as argument and not the viewmodel itselfIan Lake
08/15/2020, 5:18 PMIan Lake
08/15/2020, 5:20 PMursus
08/16/2020, 5:44 AM