// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'challenge_calendar_page.dart';

// **************************************************************************
// DesignSpecGenerator
// **************************************************************************

class _CalendarDesignSpec extends CalendarDesignSpec {
  _CalendarDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.horizontalSpacing,
    this.selectedSize,
    this.markerSize,
    this.dateFontSize,
    this.dayOfWeekFontSize,
    this.rowHeight,
    this.weekRowHeight,
    this.dayFontSize,
    this.cellMargin,
    this.progressBarStrokeWidth,
  );

  static final designMetrics = DesignMetrics.create(const Size(750.0, 672.0));

  static final Map<String, _CalendarDesignSpec> _cache = {};

  @override
  final double horizontalSpacing;

  @override
  final double selectedSize;

  @override
  final double markerSize;

  @override
  final double dateFontSize;

  @override
  final double dayOfWeekFontSize;

  @override
  final double rowHeight;

  @override
  final double weekRowHeight;

  @override
  final double dayFontSize;

  @override
  final double cellMargin;

  @override
  final double progressBarStrokeWidth;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _CalendarDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _CalendarDesignSpec._(
      _measuredMetrics, offset,
      _measuredMetrics.measureWidth(37.0), // horizontalSpacing
      _measuredMetrics.measureHeight(80.0, consistent: false), // selectedSize
      _measuredMetrics.measureHeight(64.0, consistent: false), // markerSize
      _measuredMetrics.measureAbsoluteFontSize(30.0), // dateFontSize
      _measuredMetrics.measureAbsoluteFontSize(22.0), // dayOfWeekFontSize
      _measuredMetrics.measureHeight(88.0, consistent: false), // rowHeight
      _measuredMetrics.measureHeight(56.0, consistent: false), // weekRowHeight
      _measuredMetrics.measureAbsoluteFontSize(30.0), // dayFontSize
      _measuredMetrics.measureHeight(8.0, consistent: false), // cellMargin
      _measuredMetrics.measureHeight(4.0,
          consistent: false), // progressBarStrokeWidth
    );
  }

  static CalendarDesignSpec from(
    Size size, {
    Offset offset = Offset.zero,
  }) {
    final Size measuredSize = size;
    final key = BasicDesignSpec.buildSpecKey(measuredSize, offset);
    _CalendarDesignSpec? designSpec = _cache[key];
    if (kDebugMode || designSpec == null) {
      designSpec = _create(measuredSize, offset: offset);
      _cache[key] = designSpec;
    }
    return designSpec;
  }
}

class _DailyChallengeDesignSpec extends DailyChallengeDesignSpec {
  _DailyChallengeDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.calendarDesignSpec,
    this.appBarTopSpacing,
    this.appBarIconSize,
    this.appBarIconButtonSize,
    this.appBarPadding,
    this.appBarHeight,
    this.titleFontSize,
    this.arrowIconSize,
    this.arrowButtonSize,
    this.arrowIconMargin,
    this.buttonHeight,
    this.buttonHorizontalSpacing,
    this.buttonBottomSpacing,
  );

  static final designMetrics = DesignMetrics.create(const Size(750.0, 1624.0));

  static final Map<String, _DailyChallengeDesignSpec> _cache = {};

  @override
  final CalendarDesignSpec calendarDesignSpec;

  @override
  final double appBarTopSpacing;

  @override
  final double appBarIconSize;

  @override
  final double appBarIconButtonSize;

  @override
  final EdgeInsets appBarPadding;

  @override
  final double appBarHeight;

  @override
  final double titleFontSize;

  @override
  final double arrowIconSize;

  @override
  final double arrowButtonSize;

  @override
  final EdgeInsets arrowIconMargin;

  @override
  final double buttonHeight;

  @override
  final double buttonHorizontalSpacing;

  @override
  final double buttonBottomSpacing;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DailyChallengeDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DailyChallengeDesignSpec._(
      _measuredMetrics, offset,
      CalendarDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(750.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(672.0, consistent: false)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      (_measuredMetrics.statusBarHeight(50.0) +
          _measuredMetrics.measureVertical(0.0)), // appBarTopSpacing
      _measuredMetrics.measureHeight(48.0, consistent: true), // appBarIconSize
      _measuredMetrics.measureHeight(72.0, consistent: true), // appBarIconButtonSize
      EdgeInsets.only(left: _measuredMetrics.measureWidth(28.0), right: _measuredMetrics.measureWidth(28.0), top: 0.0, bottom: 0.0),
      _measuredMetrics.measureHeight(88.0, consistent: true), // appBarHeight
      _measuredMetrics.measureAbsoluteFontSize(34.0), // titleFontSize
      _measuredMetrics.measureHeight(64.0, consistent: false), // arrowIconSize
      _measuredMetrics.measureHeight(96.0,
          consistent: true), // arrowButtonSize
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(16.0),
          right: _measuredMetrics.measureHorizontal(16.0),
          top: _measuredMetrics.measureHorizontal(16.0),
          bottom: _measuredMetrics.measureHorizontal(16.0)),
      _measuredMetrics.measureHeight(104.0, consistent: true), // buttonHeight
      _measuredMetrics.measureHorizontal(60.0), // buttonHorizontalSpacing
      _measuredMetrics.measureHorizontal(56.0), // buttonBottomSpacing
    );
  }

  static DailyChallengeDesignSpec get({Offset offset = Offset.zero}) {
    final Size measuredSize = Get.size;
    final key = BasicDesignSpec.buildSpecKey(measuredSize, offset);
    _DailyChallengeDesignSpec? designSpec = _cache[key];
    if (kDebugMode || designSpec == null) {
      designSpec = _create(measuredSize, offset: offset);
      _cache[key] = designSpec;
    }
    return designSpec;
  }
}
