Hey I am struggling to apply `Material You Dynamic Colors` (Material You) across whole app. They ar...
i
Hey I am struggling to apply
Material You Dynamic Colors
(Material You) across whole app. They are working for the
BottomNavBar
(in the Activity) but not for the Fragments content inside this Activity (see attached image) 🤔 I did:
DynamicColors.applyToActivitiesIfAvailable(this)
inside custom Application class
onCreate
method This is the Fragment code
Copy code
class FavouriteFragment : BaseFragment() {

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        return ComposeView(requireContext()).apply {
            setContent {
                FavouriteScreen()
            }
        }
    }
}
Here is my android-showcase project demonstrating this issue. Any idea why this may be happening? What am I missing here?
a
You may need ContextThemeWrapper?