https://kotlinlang.org logo
#compose
Title
# compose
v

Vaios Tsitsonis

01/17/2023, 12:55 PM
Hello! We have an app that has fragments with Views and fragments with Composables. We have a
BottomSheetDialogFragment
and in
onCreateView
we set a composable as the content. The data of this composable is loaded asynchrously. When the data is loaded we want to recalculate the height of the fragment. Which id the best approach to do it? Obviously we can declare a function in the fragment which will be passed in the composable and after getting the data we could invoke it. Is there any other way?
2 Views