Skip to content
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

Feature request: Export a widget as json data, for rebuilding dynamic widget from the file #38

Open
ronscoder opened this issue Jul 5, 2020 · 4 comments

Comments

@ronscoder
Copy link

Would it be possible, if we are able to export a widget to json data. Later we can import the json data and generate widget from it.

This way, we can speed up building the json data.

@dengyin2000
Copy link
Owner

Would it be possible, if we are able to export a widget to json data. Later we can import the json data and generate widget from it.

This way, we can speed up building the json data.

good idea, we can build a tool for translate the widget dart code into dynamic widget json data.

@vicenterusso
Copy link

I like the idea. +1 from me

@MichealReed
Copy link
Contributor

Wanted to add here that Rody Davis has created a really cool AST tool that does something similar. Maybe it can be adapted to work with this library? https://github.com/rodydavis/flutter_ast_core

@dengyin2000
Copy link
Owner

Hi guys, I create a DynamicWidgetJsonExportor widget for exporting your flutter code to json code, which you can build with dynamic widget package, please chekcout https://github.com/dengyin2000/dynamic_widget#how-to-write-the-json-code

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

No branches or pull requests

4 participants