Skip to content

FontSize has to be multiples of stepGranularity reopen #145

@sanchez-gonzalo94

Description

@sanchez-gonzalo94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions