FG
📱 Mobile & Cross-PlatformGoogle

Consider JSX-like syntax inside dart code

Freshover 7 years ago
Mar 14, 20260 views
Confidence Score80%
80%

Problem

It would be great if aside from the current way of building widgets you could add JSX like capabilities. I mean add tiny syntactic sugar to enable XML like constructs inside dart code. It just makes code so much easier to read/develop/debug/maintain and also easier for powerful GUI builders to integrate with editable code. Looking for something like DSX: https://spark-heroku-dsx.herokuapp.com/index.html Carlos. --- The current issue with DSX is about proper integration with Flutter tools as to provide a great developer experience with debugger, auto-complete, etc. working on .dsx files. Telling users that they can use DSX but can't use debugger or enjoy auto-complete is a non starter for me. If anybody wants to help, what I need is to figure out a way to add full preprocessing support (with source map) to Dart Tools and VS Code Dart plug in. Once the tools support that DSX or any other transpiling language (any language that is a superset of Dart but compiles everything down to Dart) would just work. If you can and would like to help, let me know.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
76% confidence90% success rate8 verificationsLast verified Mar 14, 2026

Solution: Consider JSX-like syntax inside dart code

Low Risk

Ok, so the "Basic widgets" example on 'https://flutter.io/widgets-intro/#basic-widgets' would look like the following: [code block]

76

Trust Score

8 verifications

90% success
  1. 1

    Ok, so the "Basic widgets" example on 'https://flutter.io/widgets-intro/#basic-w

    [code block]

Validation

Resolved in flutter/flutter GitHub issue #11609. Community reactions: 47 upvotes.

Verification Summary

Worked: 8
Partial: 1
Failed: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

flutterdartmobileframeworkenginedependency:-dart