public Widget _build(BuildContext context, BoxConstraints constraints) { if (this._ink == null) { this._ink = new InkDecoration( decoration: this.widget.decoration, configuration: ImageUtils.createLocalImageConfiguration(context), controller: Material.of(context), referenceBox: (RenderBox)context.findRenderObject(), onRemoved: this._handleRemoved ); } else { this._ink.decoration = this.widget.decoration; this._ink.configuration = ImageUtils.createLocalImageConfiguration(context); } Widget current = this.widget.child; EdgeInsets effectivePadding = this.widget._paddingIncludingDecoration; if (effectivePadding != null) { current = new Padding( padding: effectivePadding, child: current); } return(current); }
void _handleRemoved() { this._ink = null; }
void _handleRemoved() { _ink = null; }