getFooterHeight function

double getFooterHeight(
  1. BuildContext context
)

Determines the height of a footer based on the screen width.

Implementation

double getFooterHeight(BuildContext context) {
  final width = MediaQuery.of(context).size.width;
  // For very narrow screens (mobile), use three lines.

  if (width < 400) {
    return 110.0;
  }

  // For medium screens, use two lines.

  if (width < 600) {
    return 90.0;
  }

  // For wider screens, use single line.

  return 70.0;
}