// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dialog_internet_error_alert_design_model.dart';

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

class _DialogInternetErrorAlertDesignSpec
    extends DialogInternetErrorAlertDesignSpec {
  _DialogInternetErrorAlertDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentSpec,
  );

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

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

  @override
  final DialogInternetErrorAlertContentDesignSpec contentSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

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

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

class _DialogInternetErrorAlertContentDesignSpec
    extends DialogInternetErrorAlertContentDesignSpec {
  _DialogInternetErrorAlertContentDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.cardRadius,
    this.closeIconInsets,
    this.closeIconSize,
    this.titleTopSpace,
    this.titleFontSize,
    this.imageInsets,
    this.imageContainerHeight,
    this.messageInsets,
    this.messageFontSize,
    this.buttonTopSpace,
    this.buttonHeight,
    this.buttonWidth,
    this.buttonFontSize,
    this.buttonBottomSpace,
    this.buttonRadius,
  );

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

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

  @override
  final BorderRadius cardRadius;

  @override
  final EdgeInsets closeIconInsets;

  @override
  final Size closeIconSize;

  @override
  final double titleTopSpace;

  @override
  final double titleFontSize;

  @override
  final EdgeInsets imageInsets;

  @override
  final double imageContainerHeight;

  @override
  final EdgeInsets messageInsets;

  @override
  final double messageFontSize;

  @override
  final double buttonTopSpace;

  @override
  final double buttonHeight;

  @override
  final double buttonWidth;

  @override
  final double buttonFontSize;

  @override
  final double buttonBottomSpace;

  @override
  final BorderRadius buttonRadius;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogInternetErrorAlertContentDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogInternetErrorAlertContentDesignSpec._(
      _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
      _measuredMetrics.measureHeight(80.0), // titleTopSpace
      _measuredMetrics.measureAbsoluteFontSize(36.0), // titleFontSize
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(63.0),
          right: _measuredMetrics.measureHorizontal(63.0),
          top: _measuredMetrics.measureVertical(20.0),
          bottom: 0.0),
      _measuredMetrics.measureHeight(320.0), // imageContainerHeight
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(34.0),
          right: _measuredMetrics.measureHorizontal(34.0),
          top: _measuredMetrics.measureVertical(20.0),
          bottom: 0.0),
      _measuredMetrics.measureAbsoluteFontSize(28.0), // messageFontSize
      _measuredMetrics.measureHeight(56.0), // buttonTopSpace
      _measuredMetrics.measureHeight(96.0), // buttonHeight
      _measuredMetrics.measureWidth(542.0), // buttonWidth
      _measuredMetrics.measureAbsoluteFontSize(32.0), // buttonFontSize
      _measuredMetrics.measureHeight(64.0), // buttonBottomSpace
      BorderRadius.circular(_measuredMetrics.measureHeight(48.0)),
    );
  }
}
