Skip to content

Commit

Permalink
Fixed the sticky bottom padding in the profile screen (#3590)
Browse files Browse the repository at this point in the history
Co-authored-by: Allan Onchuru <[email protected]>
  • Loading branch information
Aleem92 and allan-on authored Dec 1, 2024
1 parent b13cff1 commit 6e177fd
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
Expand Down Expand Up @@ -161,15 +162,6 @@ fun ProfileScreen(
}
LazyColumn(
state = lazyListState,
modifier =
Modifier.padding(
bottom =
if (!fabActions.isNullOrEmpty() && fabActions.first().visible) {
PADDING_BOTTOM_WITH_FAB.dp
} else {
PADDING_BOTTOM_WITHOUT_FAB.dp
},
),
) {
item(key = profileUiState.resourceData?.baseResourceId) {
ViewRenderer(
Expand All @@ -180,6 +172,18 @@ fun ProfileScreen(
decodeImage = decodeImage,
)
}
item {
Spacer(
modifier =
Modifier.height(
if (!fabActions.isNullOrEmpty() && fabActions.first().visible) {
PADDING_BOTTOM_WITH_FAB.dp
} else {
PADDING_BOTTOM_WITHOUT_FAB.dp
},
),
)
}
}
}
}
Expand Down

0 comments on commit 6e177fd

Please sign in to comment.