ezTextFieldConstraints function

BoxConstraints ezTextFieldConstraints(
  1. BuildContext context
)

threeQs = widthOf context * 0.75 min: threeQs, max: min(threeQs, ScreenSize.small)

Implementation

BoxConstraints ezTextFieldConstraints(BuildContext context) {
  final double threeQs = widthOf(context) * 0.75;

  return BoxConstraints(
    minWidth: min(threeQs, ScreenSize.small.size),
    maxWidth: min(threeQs, ScreenSize.small.size),
  );
}