示例#1
0
        public override RenderObject createRenderObject(BuildContext context)
        {
            ListWheelElement childManager = (ListWheelElement)context;

            return(new RenderListWheelViewport(
                       childManager: childManager,
                       offset: this.offset,
                       diameterRatio: this.diameterRatio,
                       perspective: this.perspective,
                       offAxisFraction: this.offAxisFraction,
                       useMagnifier: this.useMagnifier,
                       magnification: this.magnification,
                       itemExtent: this.itemExtent,
                       clipToSize: this.clipToSize,
                       renderChildrenOutsideViewport: this.renderChildrenOutsideViewport
                       ));
        }
示例#2
0
        public override RenderObject createRenderObject(BuildContext context)
        {
            ListWheelElement childManager = (ListWheelElement)context;

            return(new RenderListWheelViewport(
                       childManager: childManager,
                       offset: offset,
                       diameterRatio: diameterRatio,
                       perspective: perspective,
                       offAxisFraction: offAxisFraction,
                       useMagnifier: useMagnifier,
                       magnification: magnification,
                       overAndUnderCenterOpacity: overAndUnderCenterOpacity,
                       itemExtent: itemExtent ?? 1.0f,
                       squeeze: squeeze,
                       clipToSize: clipToSize,
                       renderChildrenOutsideViewport: renderChildrenOutsideViewport
                       ));
        }