i want to create a swipable component using jetpack compose and as the document Gestures | JetpackCompose I should use rememberSwipeableState.
but when I want to use it I face this error:
Cannot access 'rememberSwipeableState': it is internal in 'androidx.compose.material3'
what should I do?
This issue is already being tracked here, issue in Material3 Compose. Alternatively as per their recommendation
For the time being, we recommend forking Swipeable if you need it in
M3!
you can use Material2 Compose Swipeable and fork it.
Related
Hi, I want to migrate my apps to android jetpack compose and create custom card like this. But, when I try to using my trick on xml (using same elevation value) to create shadow around the card, I can't generate the same result.
How can this be achieved using jetpack compose?
Is there currently anything that will allow to animate classic transition between the results list and details screen with shared element animation in Jetpack Compose?
Something like this.
I know of some experimental libraries that allows that, but they all work on single activity and I was wondering of more traditional approach with 2 activities.
The official Jetpack Compose roadmap states that shared element transition is currently in focus, so no official support yet.
Android usually supports navigation with the tab and enter key as described here.
However, when using Jetpack compose this option seems unavailable. Is this true and if yes I wonder what would be the simplest method to navigate a Jetpack Compose Kotlin App using my keyboard?
maybe use the custom navigation as described here ?
or better implement a whole new navigation method as described here?
Thank you for any help
What exactly is the difference between a ModalDrawer() and Scaffold(DrawerContent)? I seem to recall reading somewhere that the ModalDrawer() incorporates the navigation component. I also think I read that you can't use a ModalDrawer with Scaffold, or that they don't work well together.
When do you want to use one over the other?
An adaptive layout that is driven by the screen size. This is the basic idea and I use LayoutBuilderin the Flutter project, and how about in the Compose?
Checkout BoxWithConstraints.
It works very well.