Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

适配字体 #590

Open
Jazzzy126 opened this issue Nov 8, 2024 · 1 comment
Open

适配字体 #590

Jazzzy126 opened this issue Nov 8, 2024 · 1 comment

Comments

@Jazzzy126
Copy link

如果我需要适配字体,是否要每一个用到Text的标签的地方都单独设置
我全局设置了

    textTheme: TextTheme(
      bodyMedium: TextStyle(fontSize: 18.sp),
    )

这样子是无效的,希望解答

@a1573595
Copy link

如果我需要适配字体,是否要每一个用到Text的标签的地方都单独设置 我全局设置了

    textTheme: TextTheme(
      bodyMedium: TextStyle(fontSize: 18.sp),
    )

这样子是无效的,希望解答

Please refer to Readme to use fontSizeFactor:

theme: ThemeData(
    primarySwatch: Colors.blue,
    textTheme: Typography.englishLike2018.apply(fontSizeFactor: 1.sp),
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants