Code Monkey home page Code Monkey logo

Comments (7)

lizhuoyuan avatar lizhuoyuan commented on July 20, 2024

是px啊 方法只是增加了是否随系统的文字缩放而进行缩放 你看是不是系统缩放里的问题

from flutter_screenutil.

lizhuoyuan avatar lizhuoyuan commented on July 20, 2024

ScreenUtil().setSp(28) //传入字体大小,根据系统的“字体大小”辅助选项来进行缩放
ScreenUtil().setSp(28,false) //传入字体大小,不会根据系统的“字体大小”辅助选项来进行缩放

from flutter_screenutil.

iGenMO avatar iGenMO commented on July 20, 2024

有问题,750的标准,pixelRatio=2没问题,一旦大于2,字体变得很大

from flutter_screenutil.

lizhuoyuan avatar lizhuoyuan commented on July 20, 2024

谢谢反馈,我会多测试一下
尽快发新版本改正问题

from flutter_screenutil.

iGenMO avatar iGenMO commented on July 20, 2024

setSp(int fontSize, [allowFontScaling = true]) => allowFontScaling ? setWidth(fontSize) * _pixelRatio * _textScaleFactor : setWidth(fontSize) * _pixelRatio;

这里应该不需要*_pixelRatio,直接用setWidth()即可。

from flutter_screenutil.

lizhuoyuan avatar lizhuoyuan commented on July 20, 2024

已将字体适配恢复到0.3.0的版本
后续将会对字体适配进行改进.

from flutter_screenutil.

lizhuoyuan avatar lizhuoyuan commented on July 20, 2024

前一个版本是这么写的
不记得为嘛在这个版本我加了这个
我已经发布了0.4.1版本(最新版本) 改回了0.3.0的适配方法
后续我会继续针对字体方面看一看怎么适配比较好
谢谢~

from flutter_screenutil.

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.