getResponsiveWidget method

  1. @override
Widget getResponsiveWidget(
  1. BuildContext context,
  2. ScreenType screenType,
  3. double scale
)
override

Implementation

@override
Widget getResponsiveWidget(BuildContext context, ScreenType screenType, double scale) {

    return Transform.scale(
        scale: scale,
        child: Switch(
            key : get('key'),
            value : get('value'),
            onChanged : onChanged,
            activeColor : get('activeColor'),
            activeTrackColor : get('activeTrackColor'),
            inactiveThumbColor : get('inactiveThumbColor'),
            inactiveTrackColor : get('inactiveTrackColor'),
            activeThumbImage : get('activeThumbImage'),
            onActiveThumbImageError : get('onActiveThumbImageError'),
            inactiveThumbImage : get('inactiveThumbImage'),
            onInactiveThumbImageError : get('onInactiveThumbImageError'),
            materialTapTargetSize : get('materialTapTargetSize'),
            thumbColor : get('thumbColor'),
            trackColor : get('trackColor'),
            dragStartBehavior : get('dragStartBehavior'),
            mouseCursor : get('mouseCursor'),
            focusColor : get('focusColor'),
            hoverColor : get('hoverColor'),
            overlayColor : get('overlayColor'),
            splashRadius : get('splashRadius'),
            focusNode : get('focusNode'),
            autofocus : get('autofocus'),
        ),
    );
}