// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dialog_image_single_button_alert_design_model.dart';

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

class _DialogImageSingleButtonAlertDesignSpec
    extends DialogImageSingleButtonAlertDesignSpec {
  _DialogImageSingleButtonAlertDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentSpec,
  );

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

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

  @override
  final DialogImageSingleButtonAlertContentDesignSpec contentSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

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

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

class _DialogImageSingleButtonAlertContentDesignSpec
    extends DialogImageSingleButtonAlertContentDesignSpec {
  _DialogImageSingleButtonAlertContentDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.cardRadius,
    this.closeIconInsets,
    this.closeIconSize,
    this.mainTitleInsets,
    this.mainTitleFontSize,
    this.subTitleInsets,
    this.subTitleFontSize,
    this.contentImageInsets,
    this.imageContainerHeight,
    this.descriptionTextInsets,
    this.descriptionTextFontSize,
    this.buttonTopSpace,
    this.buttonBottomSpace,
    this.buttonHeight,
    this.buttonWidth,
    this.buttonFontSize,
    this.buttonImageSize,
    this.buttonImageRightSpace,
    this.buttonRadius,
  );

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

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

  @override
  final BorderRadius cardRadius;

  @override
  final EdgeInsets closeIconInsets;

  @override
  final Size closeIconSize;

  @override
  final EdgeInsets mainTitleInsets;

  @override
  final double mainTitleFontSize;

  @override
  final EdgeInsets subTitleInsets;

  @override
  final double subTitleFontSize;

  @override
  final EdgeInsets contentImageInsets;

  @override
  final double imageContainerHeight;

  @override
  final EdgeInsets descriptionTextInsets;

  @override
  final double descriptionTextFontSize;

  @override
  final double buttonTopSpace;

  @override
  final double buttonBottomSpace;

  @override
  final double buttonHeight;

  @override
  final double buttonWidth;

  @override
  final double buttonFontSize;

  @override
  final Size buttonImageSize;

  @override
  final double buttonImageRightSpace;

  @override
  final BorderRadius buttonRadius;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogImageSingleButtonAlertContentDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogImageSingleButtonAlertContentDesignSpec._(
      _measuredMetrics, offset,
      BorderRadius.circular(_measuredMetrics.measureHeight(40.0)),
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(32.0),
          right: 0.0,
          top: _measuredMetrics.measureVertical(40.0),
          bottom: 0.0),
      Size(_measuredMetrics.measureWidth(48.0),
          _measuredMetrics.measureWidth(48.0)), // closeIconSize
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(96.0),
          right: _measuredMetrics.measureHorizontal(96.0),
          top: _measuredMetrics.measureVertical(80.0),
          bottom: 0.0),
      _measuredMetrics.measureAbsoluteFontSize(36.0), // mainTitleFontSize
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(96.0),
          right: _measuredMetrics.measureHorizontal(96.0),
          top: _measuredMetrics.measureVertical(24.0),
          bottom: 0.0),
      _measuredMetrics.measureAbsoluteFontSize(28.0), // subTitleFontSize
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(63.0),
          right: _measuredMetrics.measureHorizontal(63.0),
          top: _measuredMetrics.measureVertical(24.0),
          bottom: 0.0),
      _measuredMetrics.measureHeight(320.0), // imageContainerHeight
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(56.0),
          right: _measuredMetrics.measureHorizontal(56.0),
          top: _measuredMetrics.measureVertical(24.0),
          bottom: 0.0),
      _measuredMetrics.measureAbsoluteFontSize(28.0), // descriptionTextFontSize
      _measuredMetrics.measureHeight(48.0), // buttonTopSpace
      _measuredMetrics.measureHeight(64.0), // buttonBottomSpace
      _measuredMetrics.measureHeight(96.0), // buttonHeight
      _measuredMetrics.measureWidth(542.0), // buttonWidth
      _measuredMetrics.measureAbsoluteFontSize(32.0), // buttonFontSize
      Size(_measuredMetrics.measureHeight(56.0),
          _measuredMetrics.measureHeight(56.0)), // buttonImageSize
      _measuredMetrics.measureWidth(12.0), // buttonImageRightSpace
      BorderRadius.circular(_measuredMetrics.measureHeight(48.0)),
    );
  }
}
