Flutter - Auto Scaling the Text Size

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024

ความคิดเห็น • 15

  • @nanisamireddy
    @nanisamireddy 4 ปีที่แล้ว +1

    Great video thanks you. I am searching for this for two months thank you so much for sharing your knowledge..👍👍

  • @Max-yb1mx
    @Max-yb1mx 5 ปีที่แล้ว +1

    Hey, great video! The reason why it jumps is that it is adding .35 of the initial height on the very first call of onScaleUpdate. So it's not a smooth transition. And the larger the initial height, the larger the issue.
    One solution would just to multiply the initial height and don't add to it. You said multiplying it by the scale directly was too fast, so maybe the square/cubed root of the scale would work better. That way it is always multiplied by 1.0 to start with and there's no jump in size.

  • @mtux
    @mtux 6 ปีที่แล้ว +1

    very very thanks your tutorial was very util!!!

  • @fyzuladzwan
    @fyzuladzwan 5 ปีที่แล้ว +2

    Hi, thanks for this. I am not sure whether this helps, since this video was made a year ago. I think it is a math problem. I would try _height = _initHeight * (1 + (details.scale * .35)). I hope this works.

  • @chanxpress
    @chanxpress 4 ปีที่แล้ว

    Thanks. very good video

  • @dineyoliveira5436
    @dineyoliveira5436 5 ปีที่แล้ว

    very good!

  • @GottsStr
    @GottsStr 5 ปีที่แล้ว

    Thanks!

  • @abhinandanmore7303
    @abhinandanmore7303 4 ปีที่แล้ว

    Hi,
    try this once
    if(details.scale!=1.0) {
    _hight = _inithight* details.scale;
    }

  • @caffekhalisa6264
    @caffekhalisa6264 6 ปีที่แล้ว

    Make video on adding tabs in flutter

    • @BrandonDonnelson
      @BrandonDonnelson  6 ปีที่แล้ว

      Great idea, thanks for the feedback. It's been added to my list of todos.

    • @caffekhalisa6264
      @caffekhalisa6264 6 ปีที่แล้ว +1

      Brandon Donnelson cool

  • @slightfoot
    @slightfoot 6 ปีที่แล้ว +1

    Here's a few variants on a fixed version. gist.github.com/slightfoot/b45916c32889e10ca3f6014562d5c27b

    • @BrandonDonnelson
      @BrandonDonnelson  6 ปีที่แล้ว

      Nice job, that looks far better than my implementation!

    • @akaButters
      @akaButters 6 ปีที่แล้ว +1

      Thanks for the great video Brandon and thanks for alt versions Simon, I like the three different approaches.

    • @BrandonDonnelson
      @BrandonDonnelson  6 ปีที่แล้ว

      Thank you and thank you for the feedback!