Closed
Description
π 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
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
-
Create a Flutter Web app using the
stable
channel (Flutter 3.32.5, Dart 3.8.1). -
Use any
Text()
widget with aTextStyle
inside a layout (e.g.,Column
/Container
). -
Run the app using
flutter run -d chrome --wasm
. -
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.