Skip to content

minTextScale and maxTextScale has no effect #604

Open

Description

@ouazom

I'm having issues regarding the system text size set by the user, It's making the text on my app way big, so when I tried to limit text scaling using minTextScale and maxTextScale it just does not work.

I'm currently on flutter_screenutil: ^6.0.0-alpha.1

Activity

  1. changed the title [-]minTextScale and maxTextScale does not have any effect[/-] [+]minTextScale and maxTextScale has no effect[/+] on May 5, 2025
  2. Tansir0317 commented on Aug 10, 2025

    @Tansir0317

    Setting font does not change with system font size.

    MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter_ScreenUtil',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      builder: (context, widget) {
        return MediaQuery(
          ///Setting font does not change with system font size
          data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
          child: widget,
        );
      },
      home: HomePage(title: 'FlutterScreenUtil Demo'),
    )
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions