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(
scaffoldState = scaffoldState,
topBar = { TopBar() },
floatingActionButton = { FloatingButton(watcherManager) },
floatingActionButton = { if(tabIndex == 0) FloatingButton(watcherManager) },
isFloatingActionButtonDocked = true,
backgroundColor = UIColors.PRIMARY,
bottomBar = { AppBottomBar(state, watcherManager, watcher, currentClick, outputs) { currentClick = it } }