![]() ![]() ![]() ![]() For example, the fact that a bottom sheet with 0dp height will crash. That way, in the ++code>NavHost++/code> where you specify the compose destination, the library has an indication to tell if you want to open a bottom sheet or just navigate to another full screen composable.Īnother advantage of using this library is that it already fixes some bugs linked to the bottom sheet itself. The second key point is the Kotlin extension of compose ++code> NavGraphBuilder++/code> to specify a second kind of destination: ++code>bottomSheet++/code>.This navigator is a normal navigator from ++code>androidx.navigation++/code> that can manage the bottomSheetState (to show and hide bottom sheet) and navigate between the multiple bottom sheets. The first is that it uses the ++code> ModalBottomSheetLayout++/code> and wraps it with a ++code> BottomSheetNavigator++/code>.Use the compose library, for example use 1.2.0 version which is compatible with Kotlin 1.7.0 Android Accompanist Navigation Material library Key points of the library As a bonus, it should be good to navigate to a second screen or to go to the bottom sheet “X B” from “Y A” (spoiler: it’s included in the library).Ĭompose and other Android library dependencies Also, it’s not possible to skip the half extended position of the bottom sheet using the accompanist default implementation. Blue represents what doesn’t currently exist in the Google Accompanist library. This scheme represents what we want the most. ![]()
0 Comments
Leave a Reply. |