thunderbird / thunderbird-android

Thunderbird for Android – Open Source Email App for Android (fka K-9 Mail)
https://thunderbird.net/
Apache License 2.0
10.49k stars 2.49k forks source link

Reduce The Complexity Of Compose UI Components Using Groups #7460

Closed Mukuljangir372 closed 9 months ago

Mukuljangir372 commented 9 months ago

Checklist

App version

6.714-SNAPSHOT

Problem you are trying to solve

Issues With Compose UI components Hierarchy Too many files (compose UI components) makes very large hierarchy that is difficult to scale and read.

Suggested solution

To Reduce the complexity of composable components files, We should group them using Objects i.e all the text related composables comes under Texts Object to reduce the complexity.

Screenshots / Drawings / Technical details

Screenshot 2023-12-27 at 6 36 44 PM
wmontwe commented 9 months ago

To Reduce the complexity of composable components files, We should group them using Objects i.e all the text related composables comes under Texts Object to reduce the complexity.

What do you mean with Objects? Put all text related code in one file or something different?

wmontwe commented 9 months ago

Thank you for your suggestion, we'll stick to the current approach.