Ejemplo n.º 1
0
        public override void updateRenderObject(BuildContext context, RenderObject renderObjectRaw)
        {
            _RenderSwitch renderObject = (_RenderSwitch)renderObjectRaw;

            renderObject.value                 = this.value;
            renderObject.activeColor           = this.activeColor;
            renderObject.inactiveColor         = this.inactiveColor;
            renderObject.activeThumbImage      = this.activeThumbImage;
            renderObject.inactiveThumbImage    = this.inactiveThumbImage;
            renderObject.activeTrackColor      = this.activeTrackColor;
            renderObject.inactiveTrackColor    = this.inactiveTrackColor;
            renderObject.configuration         = this.configuration;
            renderObject.onChanged             = this.onChanged;
            renderObject.additionalConstraints = this.additionalConstraints;
            renderObject.vsync                 = this.vsync;
        }
Ejemplo n.º 2
0
        public override void updateRenderObject(BuildContext context, RenderObject renderObjectRaw)
        {
            _RenderSwitch renderObject = (_RenderSwitch)renderObjectRaw;

            renderObject.value                     = value;
            renderObject.activeColor               = activeColor;
            renderObject.inactiveColor             = inactiveColor;
            renderObject.hoverColor                = hoverColor;
            renderObject.focusColor                = focusColor;
            renderObject.activeThumbImage          = activeThumbImage;
            renderObject.onActiveThumbImageError   = onActiveThumbImageError;
            renderObject.inactiveThumbImage        = inactiveThumbImage;
            renderObject.onInactiveThumbImageError = onInactiveThumbImageError;
            renderObject.activeTrackColor          = activeTrackColor;
            renderObject.inactiveTrackColor        = inactiveTrackColor;
            renderObject.configuration             = configuration;
            renderObject.onChanged                 = onChanged;
            renderObject.additionalConstraints     = additionalConstraints;
            renderObject.textDirection             = Directionality.of(context);
            renderObject.dragStartBehavior         = dragStartBehavior;
            renderObject.hasFocus                  = hasFocus;
            renderObject.hovering                  = hovering;
            renderObject.vsync                     = state;
        }