simc/auto_size_text

FontSize has to be multiples of stepGranularity reopen

sanchez-gonzalo94 opened this issue · 0 comments

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

  • Flutter version: 3.22.6
  • auto_size_text version:v3.0.0
  • flutter_screenutil: ^5.9.3