dynamic_widget icon indicating copy to clipboard operation
dynamic_widget copied to clipboard

Can I export from variable like list of widget ?

Open tonyhart7 opened this issue 3 years ago • 4 comments

something like this

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

then export as jsonstring ?

tonyhart7 avatar May 20 '22 00:05 tonyhart7

@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 ?

tonyhart7 avatar May 20 '22 01:05 tonyhart7

@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.

dengyin2000 avatar May 21 '22 14:05 dengyin2000

@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

tonyhart7 avatar May 29 '22 04:05 tonyhart7

@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?

dengyin2000 avatar Jun 06 '22 02:06 dengyin2000