Included navigation insets in layout padding

This commit is contained in:
himalia416
2025-10-13 14:27:47 +02:00
committed by Himali Aryal
parent 7d342ac09e
commit c2c210a2ba
2 changed files with 9 additions and 2 deletions

View File

@@ -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) },