mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-22 16:14:23 +01:00
Included navigation insets in layout padding
This commit is contained in:
@@ -9,8 +9,10 @@ import androidx.compose.foundation.layout.WindowInsetsSides
|
||||
import androidx.compose.foundation.layout.displayCutout
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.navigationBars
|
||||
import androidx.compose.foundation.layout.only
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.union
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Add
|
||||
@@ -46,7 +48,8 @@ internal fun HomeView() {
|
||||
Scaffold(
|
||||
topBar = { TitleAppBar(stringResource(id = R.string.app_name)) },
|
||||
contentWindowInsets = WindowInsets.displayCutout
|
||||
.only(WindowInsetsSides.Horizontal),
|
||||
.only(WindowInsetsSides.Horizontal)
|
||||
.union(WindowInsets.navigationBars),
|
||||
floatingActionButton = {
|
||||
ExtendedFloatingActionButton(
|
||||
onClick = { onEvent(UiEvent.OnConnectDeviceClick) },
|
||||
|
||||
Reference in New Issue
Block a user