feat: dynamic bottom bar

This commit is contained in:
aro 2023-01-06 18:51:00 +01:00
parent e5b477080c
commit 80be99e17f

View file

@ -33,7 +33,7 @@ fun WrenchScaffold(state: WindowState) {
floatingActionButton = { if(tabIndex == 0) FloatingButton(watcherManager) }, floatingActionButton = { if(tabIndex == 0) FloatingButton(watcherManager) },
isFloatingActionButtonDocked = true, isFloatingActionButtonDocked = true,
backgroundColor = UIColors.PRIMARY, backgroundColor = UIColors.PRIMARY,
bottomBar = { AppBottomBar(state, watcherManager, watcher, currentClick, outputs) { currentClick = it } } bottomBar = { if(tabIndex == 0) AppBottomBar(state, watcherManager, watcher, currentClick, outputs) { currentClick = it } }
) { ) {
WatcherDisplay( WatcherDisplay(
state, state,