Skip to content

Text Rendering Bug in Flutter Web (WASM) β€” Dart 3.8.1Β #61049

Closed
@UsamaSarwar

Description

@UsamaSarwar

πŸ” Description

When running a Flutter Web app using WASM and Dart SDK 3.8.1, text gets scrambled or distorted during rendering. This was not an issue in Dart 3.8.0.

πŸ“· Screenshot

Text Scrambling Screenshot
Example of garbled text while showing update progress. Letters get misaligned and spacing breaks randomly.

βœ… Working Dart Version

Dart Version Status
3.8.0 βœ… Works fine
3.8.1 ❌ Text scrambling occurs

πŸ§ͺ Reproduction Steps

  1. Create a Flutter Web app using the stable channel (Flutter 3.32.5, Dart 3.8.1).

  2. Use any Text() widget with a TextStyle inside a layout (e.g., Column/Container).

  3. Run the app using flutter run -d chrome --wasm.

  4. Observe the scrambled characters.


🧰 Environment

[βœ“] Flutter (Channel stable, 3.32.5, on macOS 26.0 25A5295e darwin-arm64, locale en-PK)
    β€’ Flutter version 3.32.5 on channel stable at /Library/Developer/flutter
    β€’ Framework revision fcf2c11572 (2025-06-24)
    β€’ Engine revision dd93de6fb1
    β€’ Dart version 3.8.1
    β€’ DevTools version 2.45.1
[βœ“] Chrome - develop for the web
    β€’ Chrome 138.0.7204.50
[βœ“] macOS (desktop)
    β€’ macOS 26.0 25A5295e darwin-arm64
[βœ“] Connected devices (3 available)

πŸ” Workaround

Downgrading Dart to 3.8.0 fixes the issue.


πŸ™ Request

Please investigate if recent changes in Dart 3.8.1 or CanvasKit/WASM rendering could have caused this font/text layout issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart2wasmIssues for the dart2wasm compiler.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions