useSplitLayout static method

bool useSplitLayout(
  1. BuildContext context
)

Returns true when the split list/detail layout should be used.

Activates in landscape orientation when the current screen width exceeds 700 logical pixels. This threshold is intentionally wider than the 600 px device classification so that:

  • Tablets in landscape -> split layout
  • Large phones (>= 400 pt shortest side) in landscape -> split layout
  • Standard phones in landscape (~667 px wide) -> single column
  • Any device in portrait -> single column

Implementation

static bool useSplitLayout(BuildContext context) {
  final mq = MediaQuery.of(context);
  if (mq.orientation != Orientation.landscape) return false;
  return mq.size.width > 700;
}