getYearViewHeight function
Gets the vertical space that one year view takes up. Some years will have extra vertical space equal to the size of a day number.
Implementation
double getYearViewHeight(BuildContext context) {
const double topPadding = 40.0;
final double titleHeight =
screenSize(context) == ScreenSizes.small ? 26.0 : 31.0;
const double dividerHeight = 16.0;
return topPadding +
titleHeight +
8.0 +
dividerHeight +
(4 * getMonthViewHeight(context) - getDayNumberSize(context));
}