The LocalMyDimensions is maybe overkill, but its useful for my usecase 🙂
Joel Denke
02/07/2024, 9:44 AM
MyDimensions can then be interface or static object, refer to all padding values you want to re-use 🙂
Joel Denke
02/07/2024, 9:44 AM
Its also nice, so can re-use that for font sizes, icon sizes, insets etc as well.
r
Rafs
02/07/2024, 9:47 AM
If you are reusing them for font sizes as well, does it mean your LocalMyDemensions class is holding regular integer values?
j
Joel Denke
02/08/2024, 6:56 AM
No, TextUnit requires em or sp as font dimensions. Also cant call Local composition from another class provided by local composition. Like call dimensions from typography. So have to do that internally between those.