// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dialog_daily_reward_gift_collection_design_model.dart';

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

class _DialogDailyRewardCollectionDesignSpec
    extends DialogDailyRewardCollectionDesignSpec {
  _DialogDailyRewardCollectionDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentSpec,
  );

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

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

  @override
  final DialogDailyRewardCollectionContentDesignSpec contentSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogDailyRewardCollectionDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogDailyRewardCollectionDesignSpec._(
      _measuredMetrics,
      offset,
      DialogDailyRewardCollectionContentDesignSpec.create(
          Size(
              (_measuredMetrics.measuredWidth * 0.824).clamp(0.0, 400.0),
              (_measuredMetrics.measuredWidth * 0.824).clamp(0.0, 400.0) /
                  (0.9363636363636364)),
          offset: offset),
    );
  }

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

class _DialogDailyRewardCollectionContentDesignSpec
    extends DialogDailyRewardCollectionContentDesignSpec {
  _DialogDailyRewardCollectionContentDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.titleInsets,
    this.titleFontSize,
    this.coinTopSpace,
    this.coinSize,
    this.shineTopSpacing,
    this.shineSize,
    this.rewardWidth,
    this.rewardHeight,
    this.tipHeight,
    this.tipFontSize,
    this.buttonTopSpace,
    this.buttonHeight,
    this.buttonWidth,
    this.buttonFontSize,
  );

  static final designMetrics = DesignMetrics.create(const Size(618.0, 660.0));

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

  @override
  final EdgeInsets titleInsets;

  @override
  final double titleFontSize;

  @override
  final double coinTopSpace;

  @override
  final Size coinSize;

  @override
  final double shineTopSpacing;

  @override
  final double shineSize;

  @override
  final double rewardWidth;

  @override
  final double rewardHeight;

  @override
  final double tipHeight;

  @override
  final double tipFontSize;

  @override
  final double buttonTopSpace;

  @override
  final double buttonHeight;

  @override
  final double buttonWidth;

  @override
  final double buttonFontSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogDailyRewardCollectionContentDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogDailyRewardCollectionContentDesignSpec._(
      _measuredMetrics, offset,
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(48.0),
          right: _measuredMetrics.measureHorizontal(48.0),
          top: _measuredMetrics.measureVertical(0.0),
          bottom: 0.0),
      _measuredMetrics.measureFontSize(48.0), // titleFontSize
      _measuredMetrics.measureHeight(10.0), // coinTopSpace
      Size(_measuredMetrics.measureWidth(210.0),
          _measuredMetrics.measureHeight(192.0)), // coinSize
      _measuredMetrics.measureHeight(32.0), // shineTopSpacing
      _measuredMetrics.measureHeight(410.0), // shineSize
      _measuredMetrics.measureWidth(376.0), // rewardWidth
      _measuredMetrics.measureHeight(289.0), // rewardHeight
      _measuredMetrics.measureHeight(10.0), // tipHeight
      _measuredMetrics.measureFontSize(32.0), // tipFontSize
      _measuredMetrics.measureHeight(64.0), // buttonTopSpace
      _measuredMetrics.measureHeight(96.0), // buttonHeight
      _measuredMetrics.measureWidth(376.0), // buttonWidth
      _measuredMetrics.measureFontSize(32.0), // buttonFontSize
    );
  }
}
