Based on discussion in #1448, we would like to have the backgroundColor
property of a Game
to be dynamically changeable. One problem with that, however, is that right now backgroundColor
is a method, not a property, and I don't think there is a way to convert a method into a property without making a breaking change.
So, instead of changing backgroundColor
, I suggest to add a coexisting property backgroundDecoration
, while deprecating backgroundColor
method. The backgroundDecoration
property will work like this:
decoration:
property of the widget;backgroundColor()
and construct a decoration box out of that color;backgroundColor()
method will be deprecated.Note that backgroundDecoration
allows more complicated backgrounds than simple color. For example, you can implement gradient colors through it.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too