https://kotlinlang.org logo
f

Filip Wiesner

11/09/2021, 10:41 AM
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

seb

11/09/2021, 10:46 AM
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

Filip Wiesner

11/09/2021, 10:51 AM
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

sindrenm

11/09/2021, 11:01 AM
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

Filip Wiesner

11/09/2021, 11:13 AM
I see, thanks for your input, guys 🙂
k

K Merle

11/09/2021, 1:52 PM
Hopefully we don't have Material2 and Material3 in same project. So confusing.
r

Rick Regan

11/10/2021, 5:28 PM
Many of the components I use (
Slider
,
RadioButton
,
TextField
,
Switch
,
Card
,
DropdownMenu
, and
Divider
) seem to be missing in Material 3 so far.
s

seb

11/11/2021, 7:20 AM
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

lbarqueira

02/21/2022, 2:21 PM
Any sample code you can share on how to keep M2 alongside with M3 in a project?
s

seb

02/22/2022, 11:29 AM
You can check out how we're doing it in https://github.com/code-with-the-italians/bundel
l

lbarqueira

02/22/2022, 11:43 AM
Thanks, I will check for sure. Do you have a YouTube video on the livestream where you set it up.
s

seb

02/23/2022, 11:10 AM
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

lbarqueira

02/23/2022, 1:16 PM
Thank you.
👍 1