mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Address Pull Request feedback
(optional param default value + newlines)
This commit is contained in:
parent
f62b94b4c6
commit
622d82d8ae
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user