Jason Ankers
02/16/2021, 3:27 AMBottomSheetScaffold
with the navigation component? My app consists of a typical bottom-tab layout which is using Scaffold bottomBar = { .. }
like in the docs, but I want to launch bottom sheets from inside my tabs. The sheets should overlay on top of the bottom tabs and I would like to be able to call navController.navigate(..)
to open them. Anyone know of any example apps which have achieved this?Ian Lake
02/16/2021, 3:51 AMNavController
, but I don't think there's any good examples of thatIan Lake
02/16/2021, 3:53 AMdialog
destinations: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1612753388494500?thread_ts=1612753388.494500&cid=CJLTWPH7SIan Lake
02/16/2021, 3:55 AMBottomSheetScaffold
would be similar in scope, but perhaps very little overlapIan Lake
02/16/2021, 3:56 AMJason Ankers
02/16/2021, 3:57 AMJason Ankers
02/16/2021, 4:31 AMJason Ankers
03/02/2021, 5:12 AMBottomSheetNavigator
today, and got about 90% of the way there. I’m stuck on getting content from two destinations to render at the same time (so you can partially swipe the bottom sheet and peek the content behind it). I need to prevent the NavHost from removing the previous screens content when a bottom sheet is launched. Do you have any tips on how this might be achievable?Ian Lake
03/02/2021, 5:32 AMNavHost
as it is written now takes into account destinations that implement the FloatingWindow
interface (which any overlay destination should do). That interface would be the one it should check against to know not to remove the previous screenJason Ankers
03/02/2021, 5:56 AMcontent
on regular compose destinations is internal. Any idea if theres plans for NavHost
to support FloatingWindow
in the near future?Ian Lake
03/02/2021, 6:43 AMJason Ankers
04/09/2021, 3:39 PMFloatingWindow
support a substantial change