// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'guru_loading.dart';

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

class _GuruLoadingDesignSpec extends GuruLoadingDesignSpec {
  _GuruLoadingDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.radius,
    this.topRadius,
    this.bottomRadius,
    this.simpleLoadingDesignSpec,
    this.cancellableLoadingDesignSpec,
    this.feedbackLoadingDesignSpec,
  );

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

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

  @override
  final BorderRadius radius;

  @override
  final BorderRadius topRadius;

  @override
  final BorderRadius bottomRadius;

  @override
  final GuruSimpleLoadingDesignSpec simpleLoadingDesignSpec;

  @override
  final GuruCancellableLoadingDesignSpec cancellableLoadingDesignSpec;

  @override
  final GuruFeedbackLoadingDesignSpec feedbackLoadingDesignSpec;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruLoadingDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruLoadingDesignSpec._(
      _measuredMetrics, offset,
      BorderRadius.circular(_measuredMetrics.measureHeight(40.0)),
      BorderRadius.only(
          topLeft: Radius.circular(_measuredMetrics.measureHeight(40.0)),
          topRight: Radius.circular(_measuredMetrics.measureHeight(40.0)),
          bottomLeft: Radius.circular(0.0),
          bottomRight: Radius.circular(0.0)),
      BorderRadius.only(
          topLeft: Radius.circular(0.0),
          topRight: Radius.circular(0.0),
          bottomLeft: Radius.circular(_measuredMetrics.measureHeight(40.0)),
          bottomRight: Radius.circular(_measuredMetrics.measureHeight(40.0))),
      GuruSimpleLoadingDesignSpec.create(
          Size(_measuredMetrics.measureWidth(264.0),
              _measuredMetrics.measureWidth(264.0) * 0.83333333),
          offset: offset), // simpleLoadingDesignSpec
      GuruCancellableLoadingDesignSpec.create(
          Size(_measuredMetrics.measureWidth(448.0),
              _measuredMetrics.measureWidth(448.0) * 0.62053571),
          offset: offset), // cancellableLoadingDesignSpec
      GuruFeedbackLoadingDesignSpec.create(
          Size(_measuredMetrics.measureWidth(400.0),
              _measuredMetrics.measureWidth(400.0) * 0.55),
          offset: offset), // feedbackLoadingDesignSpec
    );
  }

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

class _GuruSimpleLoadingDesignSpec extends GuruSimpleLoadingDesignSpec {
  _GuruSimpleLoadingDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentPadding,
    this.loadingFontSize,
    this.loadingIconSize,
    this.dotSize,
    this.dotBottomSpacing,
  );

  static final designMetrics = DesignMetrics.create(const Size(264.0, 220.0));

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

  @override
  final EdgeInsets contentPadding;

  @override
  final double loadingFontSize;

  @override
  final double loadingIconSize;

  @override
  final double dotSize;

  @override
  final double dotBottomSpacing;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruSimpleLoadingDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruSimpleLoadingDesignSpec._(
      _measuredMetrics, offset,
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(40.0),
          right: _measuredMetrics.measureHorizontal(40.0),
          top: _measuredMetrics.measureVertical(46.0),
          bottom: _measuredMetrics.measureVertical(46.0)),
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: false), // loadingFontSize
      _measuredMetrics.measureHeight(72.0,
          consistent: false), // loadingIconSize
      _measuredMetrics.measureHeight(36.0, consistent: false), // dotSize
      _measuredMetrics.measureHeight(26.0,
          consistent: false), // dotBottomSpacing
    );
  }

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

class _GuruCancellableLoadingDesignSpec
    extends GuruCancellableLoadingDesignSpec {
  _GuruCancellableLoadingDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.loadingFontSize,
    this.loadingIconSize,
    this.loadingIconBottomSpacing,
    this.contentPadding,
    this.contentMinHeight,
    this.dividerSize,
    this.cancelFontSize,
    this.cancelButtonHeight,
  );

  static final designMetrics = DesignMetrics.create(const Size(448.0, 278.0));

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

  @override
  final double loadingFontSize;

  @override
  final double loadingIconSize;

  @override
  final double loadingIconBottomSpacing;

  @override
  final EdgeInsets contentPadding;

  @override
  final double contentMinHeight;

  @override
  final double dividerSize;

  @override
  final double cancelFontSize;

  @override
  final double cancelButtonHeight;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruCancellableLoadingDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruCancellableLoadingDesignSpec._(
      _measuredMetrics, offset,
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: false), // loadingFontSize
      _measuredMetrics.measureHeight(72.0,
          consistent: false), // loadingIconSize
      _measuredMetrics.measureHeight(8.0,
          consistent: false), // loadingIconBottomSpacing
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(40.0),
          right: _measuredMetrics.measureHorizontal(40.0),
          top: _measuredMetrics.measureVertical(36.0),
          bottom: _measuredMetrics.measureVertical(36.0)),
      _measuredMetrics.measureHeight(182.0,
          consistent: false), // contentMinHeight
      _measuredMetrics.measureHeight(1.0, consistent: false), // dividerSize
      _measuredMetrics.measureAbsoluteFontSize(32.0,
          consistent: false), // cancelFontSize
      _measuredMetrics.measureHeight(96.0,
          consistent: false), // cancelButtonHeight
    );
  }

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

class _GuruFeedbackLoadingDesignSpec extends GuruFeedbackLoadingDesignSpec {
  _GuruFeedbackLoadingDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.contentPadding,
    this.loadingFontSize,
    this.dotSize,
    this.feedbackIconSize,
    this.dotBottomSpacing,
  );

  static final designMetrics = DesignMetrics.create(const Size(400.0, 220.0));

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

  @override
  final EdgeInsets contentPadding;

  @override
  final double loadingFontSize;

  @override
  final double dotSize;

  @override
  final double feedbackIconSize;

  @override
  final double dotBottomSpacing;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruFeedbackLoadingDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruFeedbackLoadingDesignSpec._(
      _measuredMetrics, offset,
      EdgeInsets.only(
          left: _measuredMetrics.measureHorizontal(40.0),
          right: _measuredMetrics.measureHorizontal(40.0),
          top: _measuredMetrics.measureVertical(46.0),
          bottom: _measuredMetrics.measureVertical(46.0)),
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: false), // loadingFontSize
      _measuredMetrics.measureHeight(36.0, consistent: false), // dotSize
      _measuredMetrics.measureHeight(72.0,
          consistent: false), // feedbackIconSize
      _measuredMetrics.measureHeight(20.0,
          consistent: false), // dotBottomSpacing
    );
  }

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