예제 #1
0
        public override void updateRenderObject(BuildContext context, RenderObject _renderObject)
        {
            _RenderCupertinoSlider renderObject = _renderObject as _RenderCupertinoSlider;

            renderObject.value         = this.value ?? 0.0f;
            renderObject.divisions     = this.divisions;
            renderObject.activeColor   = this.activeColor;
            renderObject.onChanged     = this.onChanged;
            renderObject.onChangeStart = this.onChangeStart;
            renderObject.onChangeEnd   = this.onChangeEnd;
        }
예제 #2
0
        public override void updateRenderObject(BuildContext context, RenderObject _renderObject)
        {
            _RenderCupertinoSlider renderObject = _renderObject as _RenderCupertinoSlider;

            renderObject.value         = value ?? 0.0f;
            renderObject.divisions     = divisions;
            renderObject.activeColor   = activeColor;
            renderObject.thumbColor    = CupertinoDynamicColor.resolve(thumbColor, context);
            renderObject.trackColor    = CupertinoDynamicColor.resolve(CupertinoColors.systemFill, context);
            renderObject.onChanged     = onChanged;
            renderObject.onChangeStart = onChangeStart;
            renderObject.onChangeEnd   = onChangeEnd;
            renderObject.textDirection = Directionality.of(context);
        }