If I'm in the middle of transitioning from materia...
# compose-android
c
If I'm in the middle of transitioning from material2 to m3. Is it fine to essentially just have two themes created (one for each) and just wrap my RootApp with both of those?
Copy code
MyM3Theme{
  MyM2Theme{
    RootApp
  }
}
s
Yep, we had this for a long time. The only thing which is gonna be bad is the developer experience and the possibility to introduce subtle bugs
Think of using the wrong import for LocalContentColor for example. That was a common one we did. Glad those days are behind us.
c
Thanks for the experience there. I thought this would be the way to go about it but i wanted to sanity check. cheers
👍 1
now if all i can figure out is how to add pull to refresh on my webview tonight then i can go to bed. lmaooo
s
Oh another one we had often. Some components would provide slots and in those slots it would provide some sane locals, like ProvideTextStyle and LocalContentColor. During the transition we had to make sure all such places provided this for BOTH at the same time. So search all locals in your entire project and make sure if you provide a local for m2 do the same for m3
sweating 2
❤️ 1