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) {

  var newMinWidth = (get('minWidth') as double) * scale;
  var newHeight = (get('height') as double) * scale;

  return ButtonTheme(
      key: get('key'),
      textTheme: get('textTheme'),
      layoutBehavior: get('layoutBehavior'),
      minWidth: newMinWidth,
      height: newHeight,
      padding: get('padding'),
      shape: get('shape'),
      alignedDropdown: get('alignedDropdown'),
      buttonColor: get('buttonColor'),
      disabledColor: get('disabledColor'),
      focusColor: get('focusColor'),
      hoverColor: get('hoverColor'),
      highlightColor: get('highlightColor'),
      splashColor: get('splashColor'),
      colorScheme: get('colorScheme'),
      materialTapTargetSize: get('materialTapTargetSize'),
      child: child!

  );
}