Spikeysanju / Einsen

🎯 Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.
Apache License 2.0
912 stars 79 forks source link

cannot import properties of EinsenColors.kt #84

Closed Sagar19RaoRane closed 2 years ago

Sagar19RaoRane commented 2 years ago

Einsen_issue Describe the bug unable to call properties of EinsenColors.kt (like EinsenColors.white) in other files. i can call the EinsenColor file but not its properties

Screenshots Einsen_issue

Smartphone Details (please complete the following information): none

Additional context none

Spikeysanju commented 2 years ago

💬 Explanation @Sagar19RaoRane Can you send me the screenshot of your Theme.kt class ?. Because I think you need to add additional customisation for your theme in order to use the EinsenColors.

EinsenColors is just a wrapper class around Google material design default theme.

✅ Solution Checkout this - https://github.com/Spikeysanju/Einsen/blob/c392b0d3d131c0544c082242222d42aefab28070/app/src/main/java/dev/spikeysanju/einsen/ui/theme/Theme.kt#L87

Spikeysanju commented 2 years ago

@Sagar19RaoRane Closing this issue for now. Feel free to reopen this issue if you're still facing the same issue. Thanks in advance.