AdobeXD / xd-to-flutter-plugin

Generate assets from XD for use in an existing Flutter project
BSD 2-Clause "Simplified" License
953 stars 97 forks source link

Data parameter for grids #112

Open gskinner opened 3 years ago

gskinner commented 3 years ago

It would be nice to add a data parameter for grids, so that those values can be set externally. One consideration is what to do with the default value – including the full list of items seems excessive, but it would be valuable to include at least one item to make it easy to reference the fields. This is complicated by the current requirement to define parameters in the constructor instead of during serialization.

gskinner commented 3 years ago

This is partially complete, but currently includes an empty default. Still needs updating to include the first item as the default. Requires testing.