Skip to content

Accessibility: Persist Text Scaling Factor is not restored after application restart on Flutter Web/PWA #7336

Description

@juanklopezm75-YHWH

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

The Accessibility feature Persist Text Scaling Factor does not restore the previously selected text scaling after refreshing the browser (F5) or restarting the installed PWA.

The text size changes correctly when the user selects a new scaling factor, but after restarting the application it always returns to the default scale.

This behavior was reproduced multiple times on:

  • Flutter Web
  • Installed PWA
  • Android Installed PWA

During the investigation I verified that my application's own persisted AppState was still correct, indicating that persistence itself was working correctly. Only the FlutterFlow Text Scaling state was being lost.

The Update Text Scaling Factor action itself works correctly. The issue only occurs after the application is restarted, when the previously selected scaling factor is not restored.

Expected Behavior

When Persist Text Scaling Factor is enabled, the selected text scaling factor should automatically be restored after refreshing the browser or restarting the installed PWA, without requiring any manual code modifications.

Steps to Reproduce

  1. Enable Accessibility in FlutterFlow.

  2. Configure:

    • Minimum Text Scaling Factor = 1.0
    • Maximum Text Scaling Factor = 2.0
    • Persist Text Scaling Factor = Enabled
  3. Add an "Update Text Scaling Factor" action (for example 1.30).

  4. Run the application as Flutter Web.

  5. Change the text size.

  6. Refresh the browser (F5).

  7. Observe that the application returns to the default text scaling factor.

  8. Repeat the same test using the installed PWA.

The issue is reproducible every time.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4WlcmBy491rsNA1pD2YPpagj84JVM4R4E00MNxexE0COv3P7YPXfikSEpWZ9+kTHxcL2H8jn0dp9aLvePuA+UqJTurUbZlzKlQUTmXeEGmaKqUPbisdHBSBfFJJVPC18KRhAhAWddtc1481F72f96ASg3qH4DIPm0jH/H+BITU+1GqQ0SLb3kNh1JWeC/v

Visual documentation

Image Image

Environment

FlutterFlow version:
Current version (July 2026)

Platform:
Flutter Web
Installed PWA
Android Installed PWA
IOS Installed PWA

Browser:
Google Chrome

Operating system:
macOS

Additional Information

During the investigation I exported the generated Flutter project to better understand the behavior.

I observed that the generated project already exposes:

  • FlutterFlowTheme.initialize()
  • FlutterFlowTheme.textScaleFactor
  • FlutterFlowTheme.saveTextScaleFactor()

As a controlled experiment, I introduced a single initialization call:

await FlutterFlowTheme.initialize();

before FFAppState.initializePersistedState().

No other application code was modified.

After rebuilding, the selected Text Scaling Factor persisted correctly on:

  • Flutter Web
  • Installed PWA
  • Android Installed PWA

I cannot confirm the internal implementation of FlutterFlow's code generator, but this behavior may be worth reviewing by the engineering team.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions