dynamic_widget icon indicating copy to clipboard operation
dynamic_widget copied to clipboard

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

Open ronscoder opened this issue 5 years ago • 4 comments

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.

ronscoder avatar Jul 05 '20 14:07 ronscoder

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.

dengyin2000 avatar Jul 10 '20 05:07 dengyin2000

I like the idea. +1 from me

vicenterusso avatar Aug 16 '20 00:08 vicenterusso

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

MichealReed avatar Oct 06 '20 14:10 MichealReed

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

dengyin2000 avatar Nov 13 '20 17:11 dengyin2000