-
Notifications
You must be signed in to change notification settings - Fork 30.6k
Inconsistent TextDecoration API across platforms #181662
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: error messageError messages from the Flutter frameworkError messages from the Flutter frameworka: releaseChallenges faced when attempting to productionize an appChallenges faced when attempting to productionize an appa: typographyText rendering, possibly libtxtText rendering, possibly libtxtc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.38Found to occur in 3.38Found to occur in 3.38found in release: 3.41Found to occur in 3.41Found to occur in 3.41frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: error messageError messages from the Flutter frameworkError messages from the Flutter frameworka: releaseChallenges faced when attempting to productionize an appChallenges faced when attempting to productionize an appa: typographyText rendering, possibly libtxtText rendering, possibly libtxtc: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.38Found to occur in 3.38Found to occur in 3.38found in release: 3.41Found to occur in 3.41Found to occur in 3.41frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform teamTriaged by Web platform team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Steps to reproduce
The following code snippet compiles fine.
However, when included in
flutter build web, it fails with the following error:Looking at the source code,
TextDecoration's implementation is different across platforms.On web, it is
flutter/engine/src/flutter/lib/web_ui/lib/text.dart
Line 240 in da72d59
On non-web platforms, the implementation is missing the
maskValuegetter:https://api.flutter.dev/flutter/dart-ui/TextDecoration-class.html
Expected results
NIL
Actual results
NIL
Code sample
NIL
Screenshots or Video
Logs
No response
Flutter Doctor output
Doctor output