safaehCanShowAside function

bool safaehCanShowAside(
  1. BuildContext context,
  2. double contentAreaWidth, {
  3. double asideMinGutter = 176,
})

Whether there is enough end-gutter space for a content aside rail.

Implementation

bool safaehCanShowAside(
  BuildContext context,
  double contentAreaWidth, {
  double asideMinGutter = 176,
}) {
  if (!SafaehTheme.of(context).isWide(context)) return false;
  return safaehRailAwareBandMetrics(context, contentAreaWidth).endFree >=
      asideMinGutter + 8;
}