// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dialog_standard_container_design_model.dart';

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

class _DialogStandardDesignSpec extends DialogStandardDesignSpec {
  _DialogStandardDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentSpec,
  );

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

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

  @override
  final DialogStandardContainerDesignSpec contentSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogStandardDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogStandardDesignSpec._(
      _measuredMetrics,
      offset,
      DialogStandardContainerDesignSpec.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 DialogStandardDesignSpec get({Offset offset = Offset.zero}) {
    final Size measuredSize = Get.size;
    final key = BasicDesignSpec.buildSpecKey(measuredSize, offset);
    _DialogStandardDesignSpec? designSpec = _cache[key];
    if (kDebugMode || designSpec == null) {
      designSpec = _create(measuredSize, offset: offset);
      _cache[key] = designSpec;
    }
    return designSpec;
  }
}

class _DialogStandardContainerDesignSpec
    extends DialogStandardContainerDesignSpec {
  _DialogStandardContainerDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.cardRadius,
    this.closeIconInsets,
    this.closeIconSize,
  );

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

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

  @override
  final BorderRadius cardRadius;

  @override
  final EdgeInsets closeIconInsets;

  @override
  final Size closeIconSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _DialogStandardContainerDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _DialogStandardContainerDesignSpec._(
      _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
    );
  }
}
