Skip to content

[skwasm] Text input decorations and text are often invisible #141001

@parlough

Description

@parlough

Text input doesn't work consistently in skwasm. Most times when you try typing, you can't see the characters, cursor, or selection information, but text is being input.

  1. Add a TextInput or similar to an app.
  2. Build with skwasm flutter build web --wasm --web-renderer=skwasm
  3. Serve with necessary flags (dart pub global run dhttpd --path=build/web_wasm --headers="Cross-Origin-Embedder-Policy=require-corp;Cross-Origin-Opener-Policy=same-origin")
  4. Visit the site on a recent version of Chrome (I used 122.0.6182.0)
  5. Try to type in the text field and note that input visuals are missing, including the text.

Result (skwasm):

The following TextField has had input added and is currently selected, but no visuals (text, cursor, etc) are being displayed.

TextField rendering as empty

Version information:

Flutter 3.18.0-19.0.pre.74 • channel main • https://github.com/flutter/flutter
Framework • revision 4ff2396b86 (42 minutes ago) • 2024-01-04 20:23:28 -0500
Engine • revision f2f00a438e
Tools • Dart 3.3.0 (build 3.3.0-279.0.dev) • DevTools 2.31.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: web_skwasmSkwasm rendering backend for webengineflutter/engine related. See also e: labels.platform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions