GithubHelp home page GithubHelp logo

Comments (5)

lizhuoyuan avatar lizhuoyuan commented on May 20, 2024

是不是有字体缩放之类的东西?
然后如果只有一个text我觉得还是不要给定高度了

from flutter_screenutil.

danieldai avatar danieldai commented on May 20, 2024

我检查了,不是字体缩放的原因。嗯,确实如果只有一个text比较好处理,我的情况有点复杂,在一列有多个元素需要布局,需要精确控制每个元素的高度

OK

from flutter_screenutil.

lizhuoyuan avatar lizhuoyuan commented on May 20, 2024

暂时想不到原因

from flutter_screenutil.

cixiu avatar cixiu commented on May 20, 2024
 Container(
    height: screenUtil.setWidth(50),
    child:  Text(
      "周五",
      strutStyle: StrutStyle(
            forceStrutHeight: true,
            fontSize: ScreenUtil().setSp(45),
          ),
      style: TextStyle(color: color, fontSize: screenUtil.setSp(45)))
)

强制控制字体的高度应该可以解决你的问题 @danieldai

from flutter_screenutil.

danieldai avatar danieldai commented on May 20, 2024

@cixiu 非常感谢,我试一下

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.