Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
1.4.0 source code.tar.gz | 2023-03-26 | 360.6 kB | |
1.4.0 source code.zip | 2023-03-26 | 568.0 kB | |
README.md | 2023-03-26 | 2.0 kB | |
Totals: 3 Items | 930.6 kB | 0 |
This release contains the next changes:
- Compose updated to 1.4.0, Lifecycle dependencies updated to 2.6.1
- Both NavHost and AnimatedNavHost provide optional
modifier
andcontentAlignment
parameters now - AnimatedNavHost doesn't queue incoming transitions by default anymore. It interrupts the running animation instead and immediately starts animating the new transition. However, this behaviour may be changed by specifying a new
transitionQueueing
parameter. - An optional
enabled
parameter is added to NavBackHandler - BottomSheetNavHost is migrated to SwipeableV2. This fixes lots of issues for it.
- New
reimagined-material3
module with Material 3 dependencies only - All previously deprecated classes and methods are finally removed
Breaking changes:
- BottomSheetNavHost doesn't use Surface internally anymore. You need to define Surface inside BottomSheetNavHost manually:
kotlin
BottomSheetNavHost(/* ... */) { destination ->
Surface(
elevation = ModalBottomSheetDefaults.Elevation
) {
when (destination) {
/* ... */
}
}
}
This however allows better customization of bottom sheet surfaces for each destination.
- NavHost now uses
Box
inside, so if you had previously put your NavHost inside a Box withpropagateMinConstraints = true
, e.g.:kotlin Box(propagateMinConstraints = true) { NavHost(/* ... */) { destination -> when (destination) { /* ... */ } } }
then you might consider moving this Box inside NavHost in order to get the samepropagateMinConstraints
effect:kotlin NavHost(/* ... */) { destination -> Box(propagateMinConstraints = true) { when (destination) { /* ... */ } } }