-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GEN-2542 Ds/insurances #2289
GEN-2542 Ds/insurances #2289
Conversation
LazyColumn( | ||
contentPadding = WindowInsets | ||
.safeDrawing | ||
.only(WindowInsetsSides.Horizontal + WindowInsetsSides.Bottom) | ||
.exclude(consumedWindowInsets) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what was the problem with the insets here? was it orientation change? or tab changing?
}, | ||
) { | ||
if (hedvigBottomSheetState.data != null) { | ||
content(hedvigBottomSheetState.data!!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need data here? in other words, I prob don't fully understand the usage of bottomSheetState :)
modifier = Modifier.placeholder( | ||
visible = isLoading, | ||
highlight = PlaceholderHighlight.shimmer(), | ||
shape = MaterialTheme.shapes.squircleLarge, | ||
shape = HedvigTheme.shapes.cornerXLarge, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe diff corner here? placeholder look quite different from the button
I changed one thing which might affect other screens which was the default padding around the entire bottom sheet.
With previous implementation, if we passed nothing in the
sheetPadding
value it would also move the sheet up above the bottom navigation bar, which is never what we want to do anyway.This might have affected other callers as well, but I will try to go through them to make sure they look OK