Hi all, I got a question regarding the `FloatingAc...
# compose
m
Hi all, I got a question regarding the
FloatingActionButton
. What should be the best approach for showing/hiding the FAB according to the shown content (depending on different location in navigation). Currently, I have my top-level
Scaffold
with just
BottomNavigation
. Bottom navigation has 3 tabs, each of these tabs (representing 1 top-level destination) has several children destination. Usually, the top destination shows list of items and child destination show detail, etc. I want to show FAB in the parent destinations (for actions such as add/send/etc) but not in child destination. I feel that adding FAB within the
Scaffold
isn’t right, because I would need to enrigh my top-level state and each change to this state would cause recomposing of the whole content. Is my thinking correct? Can I put the FAB inside my top-level destinations? In something like a
Box
? Or is the FAB in
Scaffold
recommended/right way to do it?