re-enable lint unnecessary_const (#19592)
* re-enable lint unnecessary_const * remove trailling whitespaces * remove unnecessary const (after merge)
This commit is contained in:
committed by
GitHub
parent
1cb2677234
commit
27018359d2
@@ -577,7 +577,7 @@ class RenderSolidColor extends RenderDecoratedSector {
|
||||
@override
|
||||
void handleEvent(PointerEvent event, HitTestEntry entry) {
|
||||
if (event is PointerDownEvent) {
|
||||
decoration = const BoxDecoration(color: const Color(0xFFFF0000));
|
||||
decoration = const BoxDecoration(color: Color(0xFFFF0000));
|
||||
} else if (event is PointerUpEvent) {
|
||||
decoration = new BoxDecoration(color: backgroundColor);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class RenderSolidColorBox extends RenderDecoratedBox {
|
||||
@override
|
||||
void handleEvent(PointerEvent event, BoxHitTestEntry entry) {
|
||||
if (event is PointerDownEvent) {
|
||||
decoration = const BoxDecoration(color: const Color(0xFFFF0000));
|
||||
decoration = const BoxDecoration(color: Color(0xFFFF0000));
|
||||
} else if (event is PointerUpEvent) {
|
||||
decoration = new BoxDecoration(color: backgroundColor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user