Migrate style property syntax in docs #3138
Labels
enhancement
New features, or improvements to existing features.
good first issue
Is this your first time contributing? This could be a good place to start!
What is the problem or limitation you are having?
With #3107 merged, style properties can be set directly on widgets, even in constructors. Currently, all the docs and examples are shown setting them explicitly via
widget.style
, with a note added to the bottom of base Widget explaining that one can also access them directly.Describe the solution you'd like
Since the motivation is not only less typing but also simplicity for beginners, it would probably be best if this were flipped — use the newly added syntax most places, with a separate explanation of the underlying mechanism. It might still be worth using the "old" way in some places — with an explanation, or link to one — if it shows something useful, like reusing the same set of properties on several widgets.
Describe alternatives you've considered
All the code shown still works just fine.
Additional context
No response
The text was updated successfully, but these errors were encountered: