Mark
10/15/2023, 5:32 AMFlowRow
. Each item contains two Text
composables where one uses one FontFamily
and the other uses some other FontFamily
. These are consistent across items (but with a few exceptions). So should the two font families be declared at the top level of the state class, or at the item level? Declaring at the item level would minimise UI logic but increase redundancy and theoretical inconsistencies. There are also things like fontSize (different for each Text
within an item) which again should be consistent across items.efemoney
10/15/2023, 9:40 AMascii
10/15/2023, 12:11 PMMark
10/15/2023, 12:19 PMCompositionLocal
and using it with a custom theme, but I guess I could try this to provide the various fonts and font sizes: https://www.kodeco.com/34513206-compositionlocal-in-jetpack-compose?page=3ascii
10/15/2023, 12:54 PMFlowRow
.
Perhaps 1 Text is something similar to a title, and the other would be subtitle/body? Your typography can define these styles in a high level app theme composable, all while still respecting user's choices. Code or diagrams would help us realize exactly what you want.Mark
10/15/2023, 3:11 PMvide
10/16/2023, 10:20 AMMaterialTheme
is implemented?Mark
10/16/2023, 11:08 AM