Skip to content

Conversation

@Joseph-Sameh-0
Copy link
Member

This pr refactors the vertical drag gesture handling in TudeeBottomSheet.kt.

The changes include:

  • Removing the concept of predefined allowedHeights and the findClosestHeight function.
  • Simplifying the drag logic to directly adjust currentHeight.
  • Hiding the bottom sheet when currentHeight falls below 200.dp during a drag.

This commit refactors the vertical drag gesture handling in `TudeeBottomSheet.kt`.

The changes include:
- Removing the concept of predefined `allowedHeights` and the `findClosestHeight` function.
- Simplifying the drag logic to directly adjust `currentHeight`.
- Hiding the bottom sheet when `currentHeight` falls below 200.dp during a drag.
- Removing an unnecessary `@file:OptIn(ExperimentalMaterial3Api::class)` annotation.
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.

3 participants