Consider JSX-like syntax inside dart code
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
Solution: Consider JSX-like syntax inside dart code
Ok, so the "Basic widgets" example on 'https://flutter.io/widgets-intro/#basic-widgets' would look like the following: [code block]
Trust Score
8 verifications
- 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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep