public override void paint(PaintingContext context, Offset offset) { if (_hoverAnnotation != null) { AnnotatedRegionLayer <EditorMouseTrackerAnnotation> layer = new AnnotatedRegionLayer <EditorMouseTrackerAnnotation>( _hoverAnnotation, size: size, offset: offset); context.pushLayer(layer, base.paint, offset); } else { base.paint(context, offset); } }
public override void paint(PaintingContext context, Offset offset) { if (this._hoverAnnotation != null) { AnnotatedRegionLayer <MouseTrackerAnnotation> layer = new AnnotatedRegionLayer <MouseTrackerAnnotation>( this._hoverAnnotation, size: this.size, offset: offset); context.pushLayer(layer, this.paintParagraph, offset); } else { this.paintParagraph(context, offset); } }
public override void paint(PaintingContext context, Offset offset) { D.assert(imageFilter != null); if (layer == null) { layer = new ImageFilterLayer(imageFilter: imageFilter); } else { ImageFilterLayer filterLayer = layer as ImageFilterLayer; filterLayer.imageFilter = imageFilter; } context.pushLayer(layer, base.paint, offset); D.assert(layer != null); }