4 ms·
> Now, I have not used Flutter in specific, but from what I can see from its documentation, it doesn't support `em` units, so I can't base widths off of the cur
by dragonwriter 6y ago
> Now, I have not used Flutter in specific, but from what I can see from its documentation, it doesn't support `em` units, so I can't base widths off of the current font size
Can't you just use the fontSize property and multiply it by whatever number you were going to use for ems (or maybe multiply fontSize by textScaleFactor first, depending on how rigorously you want to lock to text.)
- danShumway 6y agoIs the `fontSize` property in Flutter user-customizable? If so, yes that would work fine. But it would be a weird argument to say that Flutter represents an evolution over CSS if right from the start I'm being forced to manually reinvent a core UI primitive.
- maxharris 6y agoWhy not just learn Flutter or SwiftUI? These systems are only going to continue to get more popular through the decade.