// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dialog_daily_reward_gift_design_model.dart';

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

class _DialogDailyRewardDesignSpec extends DialogDailyRewardDesignSpec {
  _DialogDailyRewardDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentSpec,
  );

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

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

  @override
  final DialogDailyRewardContentDesignSpec contentSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

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

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

class _DialogDailyRewardContentDesignSpec
    extends DialogDailyRewardContentDesignSpec {
  _DialogDailyRewardContentDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.cardRadius,
    this.contentRadius,
    this.borderWidth,
    this.closeIconInsets,
    this.closeIconSize,
    this.titleInsets,
    this.titleFontSize,
    this.firstGiftTopSpace,
    this.giftHeight,
    this.giftWidth,
    this.secondGiftTopSpace,
    this.giftsSpace,
    this.guideTextTopSpace,
    this.guideTextBottomSpace,
    this.watchAdImageWidth,
    this.watchAdImageHeight,
    this.watchAdImageRightSpace,
    this.watchAdImageBottomSpace,
    this.guideTextFontSize,
  );

  static final designMetrics = DesignMetrics.create(const Size(654.0, 765.0));

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

  @override
  final BorderRadius cardRadius;

  @override
  final BorderRadius contentRadius;

  @override
  final double borderWidth;

  @override
  final EdgeInsets closeIconInsets;

  @override
  final Size closeIconSize;

  @override
  final EdgeInsets titleInsets;

  @override
  final double titleFontSize;

  @override
  final double firstGiftTopSpace;

  @override
  final double giftHeight;

  @override
  final double giftWidth;

  @override
  final double secondGiftTopSpace;

  @override
  final double giftsSpace;

  @override
  final double guideTextTopSpace;

  @override
  final double guideTextBottomSpace;

  @override
  final double watchAdImageWidth;

  @override
  final double watchAdImageHeight;

  @override
  final double watchAdImageRightSpace;

  @override
  final double watchAdImageBottomSpace;

  @override
  final double guideTextFontSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogDailyRewardContentDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogDailyRewardContentDesignSpec._(
      _measuredMetrics, offset,
      BorderRadius.circular(_measuredMetrics.measureHeight(40.0)),
      BorderRadius.circular(_measuredMetrics.measureHeight(30.0)),
      _measuredMetrics.measureWidth(12.0), // borderWidth
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(20.0),
          right: 0.0,
          top: _measuredMetrics.measureVertical(28.0),
          bottom: 0.0),
      Size(_measuredMetrics.measureHeight(48.0),
          _measuredMetrics.measureHeight(48.0)), // closeIconSize
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(76.0),
          right: _measuredMetrics.measureHorizontal(76.0),
          top: _measuredMetrics.measureVertical(68.0),
          bottom: 0.0),
      _measuredMetrics.measureFontSize(36.0), // titleFontSize
      _measuredMetrics.measureHeight(76.0), // firstGiftTopSpace
      _measuredMetrics.measureWidth(200.0), // giftHeight
      _measuredMetrics.measureWidth(260.0), // giftWidth
      _measuredMetrics.measureHeight(24.0), // secondGiftTopSpace
      _measuredMetrics.measureWidth(38.0), // giftsSpace
      _measuredMetrics.measureHeight(48.0), // guideTextTopSpace
      _measuredMetrics.measureHeight(80.0), // guideTextBottomSpace
      _measuredMetrics.measureWidth(72.0), // watchAdImageWidth
      _measuredMetrics.measureWidth(48.0), // watchAdImageHeight
      _measuredMetrics.measureWidth(30.0), // watchAdImageRightSpace
      _measuredMetrics.measureHeight(8.0), // watchAdImageBottomSpace
      _measuredMetrics.measureAbsoluteFontSize(28.0), // guideTextFontSize
    );
  }
}
