safaehCanShowAside function
bool
safaehCanShowAside(
- BuildContext context,
- double contentAreaWidth, {
- 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;
}