feat: dynamic floating action button
This commit is contained in:
parent
e04e4d5fbf
commit
e5b477080c
1 changed files with 1 additions and 1 deletions
|
@ -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 } }
|
||||||
|
|
Reference in a new issue