You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which makes it very hard to customize specially if you want the view of each Item be defined by some function of its internal state, since the render function for each item is defined in the delegate; Below:
Should the styles be actually part of the Item struct? This would make customisation easier. Default Delegate simply renders the item according to the model's state and the item state. For example the code above would become something like:
The Issue
Current implementation has an Item's style as part of the Delegate and not the Item. This results in all Items being rendered with the same style.
Which makes it very hard to customize specially if you want the view of each Item be defined by some function of its internal state, since the render function for each item is defined in the delegate; Below:
Proposed solution
Should the styles be actually part of the Item struct? This would make customisation easier. Default Delegate simply renders the item according to the model's state and the item state. For example the code above would become something like:
This would enhance customisation and maybe even make it the List more understandable to the user since it will have to deal less with the Delegate.
The text was updated successfully, but these errors were encountered: