Material Design 3 has an expanded color system that takes advantage of features such as dynamic color.
If you use Material Theme Builder to reconfigure your palettes, you can simply drop in the Android XML or Compose theme code. Otherwise, replace Theme.MaterialComponents. with Theme.Material3. for themes and Widget.MaterialComponents. with Widget.Material3. for widget styles.
Updating the app theme to Material 3
Material Design 3 has an expanded color system that takes advantage of features such as dynamic color.
If you use Material Theme Builder to reconfigure your palettes, you can simply drop in the Android XML or Compose theme code. Otherwise, replace Theme.MaterialComponents. with Theme.Material3. for themes and Widget.MaterialComponents. with Widget.Material3. for widget styles.
Reference : https://material.io/blog/migrating-material-3