// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'ios_thankyou_design_spec.dart';

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

class _IosThankYouDesignSpec extends IosThankYouDesignSpec {
  _IosThankYouDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.iosThankYouDialogSpec,
  );

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

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

  @override
  final IosThankYouDialogDesignSpec iosThankYouDialogSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

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

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

class _IosThankYouDialogDesignSpec extends IosThankYouDialogDesignSpec {
  _IosThankYouDialogDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.radius,
    this.closeIconTopSpacing,
    this.closeIconStartSpacing,
    this.closeIconInkRadius,
    this.closeIconSize,
    this.imageTopSpacing,
    this.imageSize,
    this.titleTopSpacing,
    this.titleFontSize,
    this.summaryMaxWidth,
    this.summaryFontSize,
    this.summaryTopSpacing,
    this.buttonTopSpacing,
    this.buttonBottomSpacing,
    this.buttonSize,
    this.buttonRadius,
    this.buttonTextSize,
  );

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

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

  @override
  final BorderRadius radius;

  @override
  final double closeIconTopSpacing;

  @override
  final double closeIconStartSpacing;

  @override
  final double closeIconInkRadius;

  @override
  final double closeIconSize;

  @override
  final double imageTopSpacing;

  @override
  final Size imageSize;

  @override
  final double titleTopSpacing;

  @override
  final double titleFontSize;

  @override
  final double summaryMaxWidth;

  @override
  final double summaryFontSize;

  @override
  final double summaryTopSpacing;

  @override
  final double buttonTopSpacing;

  @override
  final double buttonBottomSpacing;

  @override
  final Size buttonSize;

  @override
  final BorderRadius buttonRadius;

  @override
  final double buttonTextSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _IosThankYouDialogDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _IosThankYouDialogDesignSpec._(
      _measuredMetrics, offset,
      BorderRadius.circular(_measuredMetrics.measureHeight(40.0)),
      _measuredMetrics.measureHeight(40.0), // closeIconTopSpacing
      _measuredMetrics.measureWidth(32.0), // closeIconStartSpacing
      _measuredMetrics.measureHeight(24.0), // closeIconInkRadius
      _measuredMetrics.measureHeight(48.0), // closeIconSize
      _measuredMetrics.measureHeight(116.0), // imageTopSpacing
      Size(_measuredMetrics.measureWidth(380.0),
          _measuredMetrics.measureHeight(200.0)), // imageSize
      _measuredMetrics.measureHeight(25.0), // titleTopSpacing
      _measuredMetrics.measureFontSize(36.0), // titleFontSize
      _measuredMetrics.measureWidth(542.0), // summaryMaxWidth
      _measuredMetrics.measureFontSize(28.0), // summaryFontSize
      _measuredMetrics.measureHeight(24.0), // summaryTopSpacing
      _measuredMetrics.measureHeight(48.0), // buttonTopSpacing
      _measuredMetrics.measureHeight(80.0), // buttonBottomSpacing
      Size(_measuredMetrics.measureWidth(542.0),
          _measuredMetrics.measureHeight(96.0)), // buttonSize
      BorderRadius.circular(_measuredMetrics.measureHeight(80.0)),
      _measuredMetrics.measureFontSize(32.0), // buttonTextSize
    );
  }
}
