Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 void _handleRemoved()
 {
     this._ink = null;
 }
Esempio n. 3
0
 void _handleRemoved()
 {
     _ink = null;
 }