[Suggestion] Improvements for use_decorated_box #3344
Labels
false-positive
P3
A lower priority bug or feature request
set-none
Does not affect any rules in a defined rule set (e.g., core, recommended, flutter)
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
I think use_decorated_box is a useful lint, but in it's current form it's also a bit misleading, because Container with only decoration is not always equivalent to DecoratedBox with same decoration, as discussed here: flutter/flutter#101631
I would propose updating the lint itself, to highlight only Containers (without border?) that are really equivalent to DecoratedBox
or
at least update the documentation of the lint, to inform developers why their UI is changing when they follow this lint.
The text was updated successfully, but these errors were encountered: