sarah joy
 · indie app dev

Custom Widget's text not using primary font family

I'm using a package in a custom widget to linkify text, and I can pass it a fontFamily which seems to work (in the pic you can see the link is a different font from the rest of the text). But! It's not actually using the correct font family. It should be the same as the text above. Has anyone had this issue with packages + custom widgets before? I feel like I'm missing some info about how styles get passed to imported packages. Or does it just not work in test and run mode? Any help is appreciated!


Maybe relevant additional info:

- The primary font family isn't custom, it's Inconsolata from Google fonts.
- I've tried a couple different packages to make the links, and none use the right font, so I don't think it's package specific.

4
5 replies