Is Material Design 2 library going to be deprecate...
# compose
f
Is Material Design 2 library going to be deprecated eventually? There are a lot of changes with M3 that I am not sure I want to do right now. But if I'll have to migrate, it might be better to do it sooner rather than later. What is the generally recommended approach since refactoring will be a lot of work.
s
I tried migrating a project to m3 on Sunday, there's still a lot of stuff that's not there yet. No rush to migrate imo
f
I agree that I would not migrate with existing project but what about project that is just starting? I guess that adopting M3 right now would save a lot of time in the future
s
You can't really properly adopt M3 yet, though. Even “basic” things like `TextField`s and whatnot aren't implemented yet. You're going to have to rely on some M2 stuff stll, I feel like.
💯 1
f
I see, thanks for your input, guys 🙂
k
Hopefully we don't have Material2 and Material3 in same project. So confusing.
r
Many of the components I use (
Slider
,
RadioButton
,
TextField
,
Switch
,
Card
,
DropdownMenu
, and
Divider
) seem to be missing in Material 3 so far.
s
As things stand, you need to keep M2 alongside M3 in your project, since there's a ton of things missing in M3 still. The annoying bit is that you need to keep both themes in the project, and sync them up. In particular you need to keep syncing up the colours in the M2 theme to the M3 ones if you're also using dynamic colours
l
Any sample code you can share on how to keep M2 alongside with M3 in a project?
s
You can check out how we're doing it in https://github.com/code-with-the-italians/bundel
l
Thanks, I will check for sure. Do you have a YouTube video on the livestream where you set it up.
s
We set it up here:

https://youtu.be/I5Cn4E8gfPA

and improved it here:

https://youtu.be/HX8L_d1YCAk

You mostly need to be looking at the first one I think
l
Thank you.
👍 1