// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'rating_design_spec.dart';

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

class _RatingDesignSpec extends RatingDesignSpec {
  _RatingDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.step1DialogSpec,
    this.step2DialogSpec,
    this.goingStoreSpec,
  );

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

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

  @override
  final RatingDialogStep1DesignSpec step1DialogSpec;

  @override
  final RatingDialogStep2DesignSpec step2DialogSpec;

  @override
  final GoingStoreLoadingDesignSpec goingStoreSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _RatingDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _RatingDesignSpec._(
      _measuredMetrics,
      offset,
      RatingDialogStep1DesignSpec.create(
          Size(
              (_measuredMetrics.measuredWidth * 0.872).clamp(0.0, 400.0),
              (_measuredMetrics.measuredWidth * 0.872).clamp(0.0, 400.0) /
                  (0.990909090909091)),
          offset: offset),
      RatingDialogStep2DesignSpec.create(
          Size(
              (_measuredMetrics.measuredWidth * 0.872).clamp(0.0, 400.0),
              (_measuredMetrics.measuredWidth * 0.872).clamp(0.0, 400.0) /
                  (0.8124223602484472)),
          offset: offset),
      GoingStoreLoadingDesignSpec.create(
          Size(
              (_measuredMetrics.measuredWidth * 0.604).clamp(0.0, 400.0),
              (_measuredMetrics.measuredWidth * 0.604).clamp(0.0, 400.0) /
                  (1.5304054054054055)),
          offset: offset),
    );
  }

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

class _RatingDialogStep1DesignSpec extends RatingDialogStep1DesignSpec {
  _RatingDialogStep1DesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.radius,
    this.closeIconTopSpacing,
    this.closeIconStartSpacing,
    this.closeIconInkRadius,
    this.closeIconSize,
    this.imageAreaSize,
    this.imageSize,
    this.imageTopSpace,
    this.titleTopSpacing,
    this.titleFontSize,
    this.ratingStartTopSpacing,
    this.ratingStartBottomSpacing,
    this.ratingItemSize,
    this.bottomMargin,
  );

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

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

  @override
  final BorderRadius radius;

  @override
  final double closeIconTopSpacing;

  @override
  final double closeIconStartSpacing;

  @override
  final double closeIconInkRadius;

  @override
  final double closeIconSize;

  @override
  final Size imageAreaSize;

  @override
  final Size imageSize;

  @override
  final double imageTopSpace;

  @override
  final double titleTopSpacing;

  @override
  final double titleFontSize;

  @override
  final double ratingStartTopSpacing;

  @override
  final double ratingStartBottomSpacing;

  @override
  final double ratingItemSize;

  @override
  final double bottomMargin;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _RatingDialogStep1DesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _RatingDialogStep1DesignSpec._(
      _measuredMetrics, offset,
      BorderRadius.circular(_measuredMetrics.measureHeight(40.0)),
      _measuredMetrics.measureHeight(40.0), // closeIconTopSpacing
      _measuredMetrics.measureWidth(32.0), // closeIconStartSpacing
      _measuredMetrics.measureHeight(24.0), // closeIconInkRadius
      _measuredMetrics.measureHeight(48.0), // closeIconSize
      Size(_measuredMetrics.measureWidth(528.0),
          _measuredMetrics.measureHeight(320.0)), // imageAreaSize
      Size(_measuredMetrics.measureWidth(368.0),
          _measuredMetrics.measureHeight(256.0)), // imageSize
      _measuredMetrics.measureHeight(56.0), // imageTopSpace
      _measuredMetrics.measureHeight(40.0), // titleTopSpacing
      _measuredMetrics.measureFontSize(36.0), // titleFontSize
      _measuredMetrics.measureHeight(50.0), // ratingStartTopSpacing
      _measuredMetrics.measureHeight(124.0), // ratingStartBottomSpacing
      _measuredMetrics.measureHeight(64.0), // ratingItemSize
      _measuredMetrics.measureHeight(8.0), // bottomMargin
    );
  }
}

class _RatingDialogStep2DesignSpec extends RatingDialogStep2DesignSpec {
  _RatingDialogStep2DesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.titleFontSize,
    this.summaryTopSpacing,
    this.summaryMaxWidth,
    this.summaryFontSize,
    this.ratingStartTopSpacing,
    this.editorBarTopSpacing,
    this.editorBarSize,
    this.editorBarPadding,
    this.editorBarRadius,
    this.editorTextSize,
    this.submitTopSpacing,
    this.submitBottomSpacing,
    this.submitButtonSize,
    this.submitButtonRadius,
    this.submitButtonTextSize,
  );

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

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

  @override
  final double titleFontSize;

  @override
  final double summaryTopSpacing;

  @override
  final double summaryMaxWidth;

  @override
  final double summaryFontSize;

  @override
  final double ratingStartTopSpacing;

  @override
  final double editorBarTopSpacing;

  @override
  final Size editorBarSize;

  @override
  final EdgeInsets editorBarPadding;

  @override
  final BorderRadius editorBarRadius;

  @override
  final double editorTextSize;

  @override
  final double submitTopSpacing;

  @override
  final double submitBottomSpacing;

  @override
  final Size submitButtonSize;

  @override
  final BorderRadius submitButtonRadius;

  @override
  final double submitButtonTextSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _RatingDialogStep2DesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _RatingDialogStep2DesignSpec._(
      _measuredMetrics, offset,
      _measuredMetrics.measureFontSize(36.0), // titleFontSize
      _measuredMetrics.measureHeight(6.0), // summaryTopSpacing
      _measuredMetrics.measureWidth(542.0), // summaryMaxWidth
      _measuredMetrics.measureFontSize(24.0), // summaryFontSize
      _measuredMetrics.measureHeight(32.0), // ratingStartTopSpacing
      _measuredMetrics.measureHeight(44.0), // editorBarTopSpacing
      Size(_measuredMetrics.measureWidth(542.0),
          _measuredMetrics.measureHeight(208.0)), // editorBarSize
      EdgeInsets.only(
          left: _measuredMetrics.measureWidth(40.0),
          right: _measuredMetrics.measureWidth(40.0),
          top: _measuredMetrics.measureHeight(6.0),
          bottom: _measuredMetrics.measureHeight(6.0)),
      BorderRadius.circular(_measuredMetrics.measureHeight(24.0)),
      _measuredMetrics.measureFontSize(28.0), // editorTextSize
      _measuredMetrics.measureHeight(48.0), // submitTopSpacing
      _measuredMetrics.measureHeight(80.0), // submitBottomSpacing
      Size(_measuredMetrics.measureWidth(542.0),
          _measuredMetrics.measureHeight(96.0)), // submitButtonSize
      BorderRadius.circular(_measuredMetrics.measureHeight(80.0)),
      _measuredMetrics.measureFontSize(32.0), // submitButtonTextSize
    );
  }
}

class _GoingStoreLoadingDesignSpec extends GoingStoreLoadingDesignSpec {
  _GoingStoreLoadingDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
  );

  static final designMetrics = DesignMetrics.create(const Size(453.0, 296.0));

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

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _GoingStoreLoadingDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GoingStoreLoadingDesignSpec._(
      _measuredMetrics,
      offset,
    );
  }
}
