simc / auto_size_text

Flutter widget that automatically resizes text to fit perfectly within its bounds.
https://pub.dev/packages/auto_size_text
MIT License
2.06k stars 240 forks source link

FontSize has to be multiples of stepGranularity reopen #145

Open sanchez-gonzalo94 opened 4 months ago

sanchez-gonzalo94 commented 4 months ago

Steps to Reproduce

  1. Install flutter_screenutil: ^5.9.3.
  2. Set ScreenUtilInit as the parent widget on top of MaterialApp with a designSize.
  3. Create a AutoSizeText widget and set minFontSize with '.sp' suffix (screenutil).
  4. Returns error.

Code sample

AutoSizeText(
          "hello world",
          textAlign: TextAlign.center,
          minFontSize: 16.sp, ,
        )

Screenshots If applicable, add screenshots to help explain your problem.

Version