feat: dynamic floating action button

This commit is contained in:
aro 2023-01-06 18:49:54 +01:00
parent e04e4d5fbf
commit e5b477080c

View file

@ -30,7 +30,7 @@ fun WrenchScaffold(state: WindowState) {
Scaffold( Scaffold(
scaffoldState = scaffoldState, scaffoldState = scaffoldState,
topBar = { TopBar() }, topBar = { TopBar() },
floatingActionButton = { 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 = { AppBottomBar(state, watcherManager, watcher, currentClick, outputs) { currentClick = it } }