dengyin2000 / dynamic_widget

A Backend-Driven UI toolkit, build your dynamic UI with json, and the json format is very similar with flutter widget code.
Apache License 2.0
1.56k stars 309 forks source link

AssetImage #72

Closed laurent1956 closed 3 years ago

laurent1956 commented 3 years ago

When i start a test with AssetImage i have a error Null safety ? image

dengyin2000 commented 3 years ago

it seems you should define the name field in your json string, show me your json string.

laurent1956 commented 3 years ago

{ "type": "AssetImage", "width": 100, "src": "info.jpg" }

dengyin2000 commented 3 years ago

please check AssetImage's widget document, https://github.com/dengyin2000/dynamic_widget/blob/master/WIDGETS.md#assetimage-widget

you should replace "src" with "name". like this.

{ "type": "AssetImage", "width": 100, "name": "info.jpg" }

laurent1956 commented 3 years ago

its OK thx for help