// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dialog_single_input_alert_design_model.dart';

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

class _DialogSingleInputAlertDesignSpec
    extends DialogSingleInputAlertDesignSpec {
  _DialogSingleInputAlertDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentSpec,
  );

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

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

  @override
  final DialogSingleInputAlertContentDesignSpec contentSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

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

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

class _DialogSingleInputAlertContentDesignSpec
    extends DialogSingleInputAlertContentDesignSpec {
  _DialogSingleInputAlertContentDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.cardRadius,
    this.closeIconInsets,
    this.closeIconSize,
    this.titleInsets,
    this.titleFontSize,
    this.inputContainerTopSpace,
    this.inputWidth,
    this.inputInsets,
    this.inputHeight,
    this.cursorHeight,
    this.cursorWidth,
    this.inputRadius,
    this.inputFontSize,
    this.inputHintFontSize,
    this.buttonTopSpace,
    this.buttonHeight,
    this.buttonWidth,
    this.buttonFontSize,
    this.buttonBottomSpace,
    this.buttonRadius,
  );

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

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

  @override
  final BorderRadius cardRadius;

  @override
  final EdgeInsets closeIconInsets;

  @override
  final Size closeIconSize;

  @override
  final EdgeInsets titleInsets;

  @override
  final double titleFontSize;

  @override
  final double inputContainerTopSpace;

  @override
  final double inputWidth;

  @override
  final EdgeInsets inputInsets;

  @override
  final double inputHeight;

  @override
  final double cursorHeight;

  @override
  final double cursorWidth;

  @override
  final BorderRadius inputRadius;

  @override
  final double inputFontSize;

  @override
  final double inputHintFontSize;

  @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 _DialogSingleInputAlertContentDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogSingleInputAlertContentDesignSpec._(
      _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), // titleFontSize
      _measuredMetrics.measureHeight(55.0), // inputContainerTopSpace
      _measuredMetrics.measureWidth(542.0), // inputWidth
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(34.0),
          right: _measuredMetrics.measureHorizontal(34.0),
          top: _measuredMetrics.measureVertical(38.0),
          bottom: _measuredMetrics.measureVertical(38.0)),
      _measuredMetrics.measureHeight(120.0), // inputHeight
      _measuredMetrics.measureHeight(44.0), // cursorHeight
      2.5, // cursorWidth
      BorderRadius.circular(_measuredMetrics.measureHeight(24.0)),
      _measuredMetrics.measureAbsoluteFontSize(32.0), // inputFontSize
      _measuredMetrics.measureAbsoluteFontSize(32.0), // inputHintFontSize
      _measuredMetrics.measureHeight(48.0), // buttonTopSpace
      _measuredMetrics.measureHeight(96.0), // buttonHeight
      _measuredMetrics.measureWidth(542.0), // buttonWidth
      _measuredMetrics.measureAbsoluteFontSize(32.0), // buttonFontSize
      _measuredMetrics.measureHeight(88.0), // buttonBottomSpace
      BorderRadius.circular(_measuredMetrics.measureHeight(48.0)),
    );
  }
}
