// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'visual_debug_design_model.dart';

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

class _VisualDebugDesignSpec extends VisualDebugDesignSpec {
  _VisualDebugDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.dialogSpec,
  );

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

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

  @override
  final VisualDebugDialogDesignSpec dialogSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

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

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

class _VisualDebugDialogDesignSpec extends VisualDebugDialogDesignSpec {
  _VisualDebugDialogDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.radius,
    this.bottomMargin,
    this.headerTopSpacing,
    this.headerPadding,
    this.headerHeight,
    this.closeIconSize,
    this.titleTopSpacing,
    this.titleFontSize,
    this.textFieldFontSize,
    this.textFieldTopSpacing,
    this.textFieldHeight,
    this.textFieldRadius,
    this.textFieldHorizontalPadding,
    this.tipsTopSpacing,
    this.buttonVerticalSpacing,
    this.buttonSize,
    this.smallButtonSize,
    this.buttonFontSize,
    this.buttonShadowOffset,
  );

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

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

  @override
  final BorderRadius radius;

  @override
  final double bottomMargin;

  @override
  final double headerTopSpacing;

  @override
  final EdgeInsetsGeometry headerPadding;

  @override
  final double headerHeight;

  @override
  final double closeIconSize;

  @override
  final double titleTopSpacing;

  @override
  final double titleFontSize;

  @override
  final double textFieldFontSize;

  @override
  final double textFieldTopSpacing;

  @override
  final double textFieldHeight;

  @override
  final BorderRadius textFieldRadius;

  @override
  final EdgeInsets textFieldHorizontalPadding;

  @override
  final double tipsTopSpacing;

  @override
  final double buttonVerticalSpacing;

  @override
  final Size buttonSize;

  @override
  final Size smallButtonSize;

  @override
  final double buttonFontSize;

  @override
  final Offset buttonShadowOffset;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _VisualDebugDialogDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _VisualDebugDialogDesignSpec._(
      _measuredMetrics, offset,
      BorderRadius.circular(_measuredMetrics.measureHeight(40.0)),
      _measuredMetrics.measureHeight(8.0), // bottomMargin
      _measuredMetrics.measureHeight(40.0), // headerTopSpacing
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(32.0),
          end: _measuredMetrics.measureWidth(32.0),
          top: 0.0,
          bottom: 0.0), // headerPadding
      _measuredMetrics.measureHeight(85.0), // headerHeight
      _measuredMetrics.measureHeight(48.0), // closeIconSize
      _measuredMetrics.measureHeight(48.0), // titleTopSpacing
      _measuredMetrics.measureAbsoluteFontSize(36.0), // titleFontSize
      _measuredMetrics.measureVertical(28.0), // textFieldFontSize
      _measuredMetrics.measureVertical(56.0), // textFieldTopSpacing
      _measuredMetrics.measureHeight(104.0), // textFieldHeight
      BorderRadius.circular(_measuredMetrics.measureHeight(24.0)),
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(40.0),
          right: _measuredMetrics.measureHorizontal(40.0),
          top: 0.0,
          bottom: 0.0),
      _measuredMetrics.measureVertical(16.0), // tipsTopSpacing
      _measuredMetrics.measureVertical(56.0), // buttonVerticalSpacing
      Size(_measuredMetrics.measureHeight(96.0) * 5.64583333,
          _measuredMetrics.measureHeight(96.0)), // buttonSize
      Size(_measuredMetrics.measureHeight(96.0) * 2.52,
          _measuredMetrics.measureHeight(96.0)), // smallButtonSize
      _measuredMetrics.measureFontSize(32.0), // buttonFontSize
      Offset(0.0, _measuredMetrics.measureHeight(2.0)), // buttonShadowOffset
    );
  }
}
