columnWidthMode static method

ColumnWidthMode columnWidthMode(
  1. BuildContext context
)

Best ColumnWidthMode for the current screen width.

Implementation

static ColumnWidthMode columnWidthMode(BuildContext context) {
  // On mobile let columns be content-sized so the user can scroll horizontally.
  if (isMobile(context)) return ColumnWidthMode.auto;
  return ColumnWidthMode.fill;
}