Commit 38bc97b6 authored by Alex Fandrianto's avatar Alex Fandrianto

Address Pull Request feedback

(optional param default value + newlines)
parent dde3dd91
......@@ -674,6 +674,7 @@ class RenderIgnorePointer extends RenderProxyBox {
RenderIgnorePointer({ RenderBox child, bool ignoring: true }) : super(child);
bool ignoring;
bool hitTest(HitTestResult result, { Point position }) {
return ignoring ? false : super.hitTest(result, position: position);
}
......
......@@ -899,10 +899,11 @@ class WidgetToRenderBoxAdapter extends LeafRenderObjectWrapper {
// EVENT HANDLING
class IgnorePointer extends OneChildRenderObjectWrapper {
IgnorePointer({ Key key, Widget child, this.ignoring })
IgnorePointer({ Key key, Widget child, this.ignoring: true })
: super(key: key, child: child);
final bool ignoring;
RenderIgnorePointer createNode() => new RenderIgnorePointer(ignoring: ignoring);
RenderIgnorePointer get renderObject => super.renderObject;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment