contentMaxWidth static method

double contentMaxWidth(
  1. BuildContext context
)

Prevents overly long lines on wide screens.

Implementation

static double contentMaxWidth(BuildContext context) {
  final width = _size(context).width;
  return width > 1000 ? 1000 : width;
}