czuckie
10/06/2022, 10:14 PMComposeView() but getting: java.lang.IllegalStateException: ViewTreeLifecycleOwner not found from androidx.appcompat.widget.AlertDialogLayoutczuckie
10/06/2022, 10:18 PMFlutterActivityAppCompat just incase it was some AppCompatActivity stuff that needed to be going but that didn't seem to help 😞Ian Lake
10/06/2022, 11:15 PMandrew
10/06/2022, 11:26 PMczuckie
10/06/2022, 11:48 PMIan Lake
10/06/2022, 11:51 PMDialog composable pulls the owners from the activity, which isn't perfect but good enough ™️ in just about every case: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]lin/androidx/compose/ui/window/AndroidDialog.android.kt;l=355Ian Lake
10/06/2022, 11:52 PMComponentActivity or its subclasses, FragmentActivity or AppCompatActivity, which do have those owners set for you alreadyIan Lake
10/06/2022, 11:54 PMViewTreeLifecycleOwner.set(yourDialogLayout, yourActivity) and yourDialogLayout.setViewTreeSavedStateRegistryOwner(yourActivity)czuckie
10/07/2022, 7:48 AM