[PM-10645] add nav bar padding in bw scaffold for FAB (#3679)

This commit is contained in:
Dave Severns 2024-08-05 16:57:21 -04:00 committed by GitHub
parent 4c8164954d
commit abeb60e237
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.exclude
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FabPosition
@ -52,7 +53,11 @@ fun BitwardenScaffold(
topBar = topBar,
bottomBar = bottomBar,
snackbarHost = snackbarHost,
floatingActionButton = floatingActionButton,
floatingActionButton = {
Box(modifier = Modifier.navigationBarsPadding()) {
floatingActionButton()
}
},
floatingActionButtonPosition = floatingActionButtonPosition,
containerColor = containerColor,
contentColor = contentColor,