Zoltan Demant
02/01/2022, 11:27 AMstateFlow.collectAsState()
is called)
- TopBar with several timers
- Pager where each page consists of a LazyColumn
- BottomBar with its own set of input fields, buttons, and a LazyRow
The actual UI
• Ive read about donut hole skipping many a times.
• Ive also experimented with marking the state (and "subsets" of it) @Stable
and @Immutable
.
Both have helped me become a better composer, and the flow is a bit smoother - but still laggy for certain devices (especially lower-end).
Im sort of confined to having a state at the root of the composable hierarchy. I take it that multiple stateFlow.collectAsState()
throughout the hierarchy of composables would help otherwise.Adam Powell
02/01/2022, 2:56 PMZoltan Demant
02/01/2022, 3:59 PM