SunnySpacing.of constructor
const
SunnySpacing.of({})
Implementation
const SunnySpacing.of({
required this.scaleFactor,
required double spaceUnit,
required double appBarHeight,
required double cardImageHeight,
required double cardImageExpandedHeight,
}) : _pageSideMargin = spaceUnit * 2,
_pageTopMargin = spaceUnit * 3,
_cardSpacing = spaceUnit * 3,
_spaceUnit = spaceUnit,
_appBarHeight = appBarHeight,
pageSideMargin = spaceUnit * 2 * scaleFactor,
pageTopMargin = spaceUnit * 3 * scaleFactor,
cardSpacing = spaceUnit * 3 * scaleFactor,
spaceUnit = spaceUnit * scaleFactor,
appBarHeight = appBarHeight * scaleFactor,
_cardImageHeight = cardImageHeight,
_cardImageExpandedHeight = cardImageExpandedHeight,
cardImageHeight = cardImageHeight * scaleFactor,
cardImageExpandedHeight = cardImageExpandedHeight * scaleFactor;