double dialogHeight({double max = 600}) { final double available = MediaQuery.sizeOf(this).height - 96; return available < max ? available : max; }