Skip to content

feat: need tool covert flutter widget to json #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
zhoudajun-ola opened this issue Jan 22, 2025 · 4 comments
Open
1 task

feat: need tool covert flutter widget to json #130

zhoudajun-ola opened this issue Jan 22, 2025 · 4 comments
Labels
feature New feature or request

Comments

@zhoudajun-ola
Copy link

Description

Writing JSON manually is unacceptable, difficult to maintain, and inefficient

Requirements

  • Checklist of requirements to be fulfilled

Additional Context

Add any other context or screenshots about the feature request go here.

@zhoudajun-ola zhoudajun-ola added the feature New feature or request label Jan 22, 2025
@divyanshub024
Copy link
Member

Thanks for raising this issue @zhoudajun-ola!! We are planning to build some tools to convert Dart to Mirai JSON. Meanwhile, if you have some ideas about it, please share them here.

@alvinwatner
Copy link

Hey @divyanshub024 @zhoudajun-ola I have been working on creating a Python script to convert Flutter packages into Stac JSON. It will first flattened the widget for any reusable widgets, referenced value into an abstract properties into a single original widget tree and values. Then, it will be passed into a pipeline where part of it has RAG that will perform retrieval on relevant part of the Stac docs, and use LLM to infer the Flutter Widget to Stac JSON. Have you guys done some work on this? I even found this approach challenging to produce a consistent accurate output.

@divyanshub024
Copy link
Member

Hey @alvinwatner!! We were planning to launch Dart to JSON for Stac. I would love to see your approach and the result it's generating.

@alvinwatner
Copy link

@divyanshub024 Just tried to fine-tune open-ai model from here to stac docs, and works pretty well! I will finalize the work and share with you guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants