예제 #1
0
        public override void paint(PaintingContext context, Offset offset)
        {
            if (child == null)
            {
                return;
            }

            _ToolbarParentData childParentData = child.parentData as _ToolbarParentData;

            context.pushClipPath(
                needsCompositing,
                offset + childParentData.offset,
                Offset.zero & child.size,
                _clipPath(),
                (PaintingContext innerContext, Offset innerOffset) => innerContext.paintChild(child, innerOffset)
                );
        }