OpenFlutter / flutter_screenutil

Flutter screen adaptation, font adaptation, get screen information
https://pub.dartlang.org/packages/flutter_screenutil
Apache License 2.0
3.83k stars 485 forks source link

Version 5.9.0 has exaggerated proportions in landscape mode #528

Closed SkyOfFeather closed 6 months ago

SkyOfFeather commented 8 months ago

My application has a landscape and portrait screen switching function. After version 5.9.0, when the page is in landscape mode, the proportion is significantly different from the previous version, which becomes very exaggerated. On versions<=5.8.4, it is normal

IMG_0758 IMG_0759

DexEze commented 8 months ago

I seem to be having the same issue. Anything using .sp is far too big after upgrading to 5.9.0 from 5.8.4

Downgrading to 5.8.4 fixed this for me.

SkyOfFeather commented 8 months ago

Yes, by the way, it should be caused by the use of. sp

jobinjva commented 8 months ago

this worked for me. (v5.9.0)

    ScreenUtilInit(
      fontSizeResolver: (fontSize, instance) => FontSizeResolvers.radius(fontSize, instance),
      ........
github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

RakaAlrian commented 1 month ago

this worked for me. (v5.9.0)

    ScreenUtilInit(
      fontSizeResolver: (fontSize, instance) => FontSizeResolvers.radius(fontSize, instance),
      ........

this should be included in the documentation