// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dialog_buttons_alert_design_model.dart';

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

class _DialogButtonsAlertDesignSpec extends DialogButtonsAlertDesignSpec {
  _DialogButtonsAlertDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentSpec,
  );

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

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

  @override
  final DialogButtonsAlertContentDesignSpec contentSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

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

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

class _DialogButtonsAlertContentDesignSpec
    extends DialogButtonsAlertContentDesignSpec {
  _DialogButtonsAlertContentDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentInsets,
    this.cardRadius,
    this.contentFontSize,
    this.buttonTopSpace,
    this.buttonHeight,
    this.buttonWidth,
    this.buttonLeftSpace,
    this.buttonRightSpace,
    this.buttonSpace,
    this.buttonFontSize,
    this.buttonRadius,
    this.buttonBottomSpace,
  );

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

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

  @override
  final EdgeInsets contentInsets;

  @override
  final BorderRadius cardRadius;

  @override
  final double contentFontSize;

  @override
  final double buttonTopSpace;

  @override
  final double buttonHeight;

  @override
  final double buttonWidth;

  @override
  final double buttonLeftSpace;

  @override
  final double buttonRightSpace;

  @override
  final double buttonSpace;

  @override
  final double buttonFontSize;

  @override
  final BorderRadius buttonRadius;

  @override
  final double buttonBottomSpace;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogButtonsAlertContentDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogButtonsAlertContentDesignSpec._(
      _measuredMetrics, offset,
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(88.0),
          right: _measuredMetrics.measureHorizontal(88.0),
          top: _measuredMetrics.measureVertical(80.0),
          bottom: 0.0),
      BorderRadius.circular(_measuredMetrics.measureHeight(40.0)),
      _measuredMetrics.measureAbsoluteFontSize(32.0), // contentFontSize
      _measuredMetrics.measureHeight(56.0), // buttonTopSpace
      _measuredMetrics.measureHeight(96.0), // buttonHeight
      _measuredMetrics.measureWidth(272.0), // buttonWidth
      _measuredMetrics.measureWidth(40.0), // buttonLeftSpace
      _measuredMetrics.measureWidth(40.0), // buttonRightSpace
      _measuredMetrics.measureWidth(30.0), // buttonSpace
      _measuredMetrics.measureAbsoluteFontSize(32.0), // buttonFontSize
      BorderRadius.circular(_measuredMetrics.measureHeight(48.0)),
      _measuredMetrics.measureHeight(48.0), // buttonBottomSpace
    );
  }
}
