screenListPadding function

EdgeInsets screenListPadding(
  1. BuildContext context
)

Responsive padding for the outer ListView / Column body of a screen.

Mobile (<800 px): tighter to claw back the generous chrome that wastes ~24 px of vertical space and ~80 px of horizontal space at the 375 px viewport. Desktop (≥800 px): the canonical org-shell padding, unchanged from the pre-density-pass value.

Implementation

EdgeInsets screenListPadding(BuildContext context) {
  final isWide = MediaQuery.sizeOf(context).width >= desktopBreakpoint;
  return isWide
      ? const EdgeInsets.fromLTRB(40, 32, 40, 80)
      : const EdgeInsets.fromLTRB(20, 16, 20, 80);
}