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

Can I export from variable like list of widget ? #95

Open
tonyhart7 opened this issue May 20, 2022 · 4 comments
Open

Can I export from variable like list of widget ? #95

tonyhart7 opened this issue May 20, 2022 · 4 comments

Comments

@tonyhart7
Copy link

something like this

final seatMap = <Widget>[];
DynamicWidgetJson(child: seatMap)

then export as jsonstring ?
@tonyhart7
Copy link
Author

@dengyin2000
so basically Iam looking at source code app and

jsonEncode(DynamicWidgetBuilder.exportWidgets(seatMap, null));

this function do same as DynamicJsonExporter, can I use that ?

@dengyin2000
Copy link
Owner

@dengyin2000 so basically Iam looking at source code app and

jsonEncode(DynamicWidgetBuilder.exportWidgets(seatMap, null));

this function do same as DynamicJsonExporter, can I use that ?

yes. try it.

@tonyhart7
Copy link
Author

@dengyin2000 so basically Iam looking at source code app and

jsonEncode(DynamicWidgetBuilder.exportWidgets(seatMap, null));

this function do same as DynamicJsonExporter, can I use that ?

yes. try it.

ok this is a bit strange its works but the strange part its just produce the last widget, its just print single last widget of it
do u know why its problem ? because I certainly put a for loop for it @dengyin2000

@dengyin2000
Copy link
Owner

@dengyin2000 so basically Iam looking at source code app and

jsonEncode(DynamicWidgetBuilder.exportWidgets(seatMap, null));

this function do same as DynamicJsonExporter, can I use that ?

yes. try it.

ok this is a bit strange its works but the strange part its just produce the last widget, its just print single last widget of it do u know why its problem ? because I certainly put a for loop for it @dengyin2000

show your 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

2 participants