Skip to content
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

New design/forever feature shared bottom with sheet state #2293

Conversation

StylianosGakis
Copy link
Member

Same thing, but with HedvigBottomSheetState to control when the sheet shows or not.

It seems like this line prevents the children of this layout from using
the insets apis properly, since they are now receiving information that
the safeDrawing insets are already handled, but they are not actually
consumed anywhere.
Particularly, in landscape the cutout insets seem to not be inset here
Use HedvigBottomSheetState to store the information of the sheet.
Dismiss it as normal when clicking "close" or when clicking outside.
Also hook into the state of `showReferralCodeSuccessfullyChangedMessage`
to dismiss it when it turns true, since we know that we have
successfully submitted a code then.

At the same time, remove the extra horizontal padding since the bottom
sheet has a default of 16.dp horizontal which is what we wanted here.
@StylianosGakis StylianosGakis requested a review from a team as a code owner November 15, 2024 14:25
Base automatically changed from new-design/forever-feature-shared to develop November 15, 2024 15:38
…with-sheet-state

# Conflicts:
#	app/shared/forever-ui/src/main/kotlin/com/hedvig/android/shared/foreverui/ui/ui/ForeverDestination.kt
@StylianosGakis StylianosGakis merged commit 9e42e6a into develop Nov 15, 2024
3 of 4 checks passed
@StylianosGakis StylianosGakis deleted the new-design/forever-feature-shared-bottom-with-sheet-state branch November 15, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant