helperSm method

Widget helperSm(
  1. BuildContext context,
  2. double val
)

Implementation

Widget helperSm(BuildContext context, double val){
  if(deviceType != 'sm' && (Responsive.sm(context) || Responsive.md(context) || Responsive.xl(context) || Responsive.lg(context))){
    // double width = MediaQuery.of(context).size.width*val;
    // print(width);
    // child = SizedBox(width: width.toPrecision(2), child: child);
    child = FractionallySizedBox(
        key:key,
        widthFactor: val,
        // heightFactor: val,
        child: child
    );
  }
  return child;
}