Coder Social home page Coder Social logo

Comments (3)

wanghongenpin avatar wanghongenpin commented on September 24, 2024

可以看下flutter指定字体文档
https://flutter.cn/docs/cookbook/design/fonts

from network_proxy_flutter.

kero990 avatar kero990 commented on September 24, 2024

可以看下flutter指定字体文档 https://flutter.cn/docs/cookbook/design/fonts

我这里是个UOS的设备,目前的环境是Flutter 3.14.0-0.2.pre,现在的问题是,我编译的多个flutter都无法显示字体。经测试,直接为themeData赋值fontFamily: 'Noto Sans CJK SC',就可以正确显示,但使用textTheme的fontFamily就是无效的。我不知道为什么。
然而themeData的copyWith并不支持直接使用fontFamily,这导致一旦项目使用了复杂的themeData实现,我浅薄的flutter知识就不会改了,您这个我就不会改。。。。。
我不知道这是不是flutter的bug,还是系统的兼容性。我只想编译几个项目而已。

from network_proxy_flutter.

wanghongenpin avatar wanghongenpin commented on September 24, 2024

去Flutter社区提问吧,字体我研究的也不多

我这里是个UOS的设备,目前的环境是Flutter 3.14.0-0.2.pre,现在的问题是,我编译的多个flutter都无法显示字体。经测试,直接为themeData赋值fontFamily: 'Noto Sans CJK SC',就可以正确显示,但使用textTheme的fontFamily就是无效的。我不知道为什么。 然而themeData的copyWith并不支持直接使用fontFamily,这导致一旦项目使用了复杂的themeData实现,我浅薄的flutter知识就不会改了,您这个我就不会改。。。。。 我不知道这是不是flutter的bug,还是系统的兼容性。我只想编译几个项目而已。

from network_proxy_flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.