You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using Cyricilic (possibly any non-ASCII) characters as LoginMessages.loginButton (and likely any other AnimatedButton.text) causes Flutter Web to download the fallback font Noto Sans SC.
The bug is caused by a TextStyle which doesn't copy the fontFamily from the theme here. For example, adding fontFamily: theme.textTheme.labelLarge!.fontFamily, to the TextStyle there resolves the issue for me, however in my opinion, it's wiser to use the whole theme.textTheme.labelLarge for the style here.
Describe the bug
Using Cyricilic (possibly any non-ASCII) characters as
LoginMessages.loginButton
(and likely any otherAnimatedButton.text
) causes Flutter Web to download the fallback font Noto Sans SC.The bug is caused by a
TextStyle
which doesn't copy thefontFamily
from the theme here. For example, addingfontFamily: theme.textTheme.labelLarge!.fontFamily,
to theTextStyle
there resolves the issue for me, however in my opinion, it's wiser to use the wholetheme.textTheme.labelLarge
for the style here.To Reproduce
Steps to reproduce the behavior:
Network
tab of the Chromium'sDeveloper Tools
.Roboto
(the default font) andNoto Sans SC
(one of the fallback fonts) are downloaded.Expected behavior
I expected only the
Roboto
font to be downloaded.Screenshots
Information (please complete the following information):
The text was updated successfully, but these errors were encountered: