Exemple #1
0
        protected override void insertChildRenderObject(RenderObject child, object slot)
        {
            RenderListWheelViewport renderObject = this.renderObject;

            D.assert(renderObject.debugValidateChild(child));
            int slotNum = (int)slot;

            renderObject.insert(child as RenderBox, after: _childElements.getOrDefault(slotNum - 1)?.renderObject as RenderBox);
            D.assert(renderObject == this.renderObject);
        }
Exemple #2
0
        protected override void insertChildRenderObject(RenderObject child, object slot)
        {
            RenderListWheelViewport renderObject = this.renderObject;

            D.assert(renderObject.debugValidateChild(child));

            renderObject.insert((RenderBox)child,
                                (RenderBox)this._childElements.getOrDefault((int)slot - 1)?.renderObject);
            // Debug.Log($"insert: {this._childElements.getOrDefault((int) slot - 1)}");


            D.assert(renderObject == this.renderObject);
        }