// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'subscription_page.dart';

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

class _SubscriptionDesignSpec extends SubscriptionDesignSpec {
  _SubscriptionDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.appBarMargin,
    this.appBarHeight,
    this.closeIconSize,
    this.restoreFontSize,
    this.bottomCardsPadding,
    this.premiumCardsBottomSpacing,
    this.buttonSize,
    this.policyPadding,
    this.policyFontSize,
    this.mainCardSpec,
    this.edgeCardSpec,
    this.listCardSpec,
    this.listCardBottomSpacing,
  );

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

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

  @override
  final EdgeInsetsDirectional appBarMargin;

  @override
  final double appBarHeight;

  @override
  final double closeIconSize;

  @override
  final double restoreFontSize;

  @override
  final EdgeInsetsDirectional bottomCardsPadding;

  @override
  final double premiumCardsBottomSpacing;

  @override
  final Size buttonSize;

  @override
  final EdgeInsetsDirectional policyPadding;

  @override
  final double policyFontSize;

  @override
  final SubscriptionMainCardDesignSpec mainCardSpec;

  @override
  final SubscriptionEdgeCardDesignSpec edgeCardSpec;

  @override
  final SubscriptionListCardDesignSpec listCardSpec;

  @override
  final double listCardBottomSpacing;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _SubscriptionDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _SubscriptionDesignSpec._(
      _measuredMetrics, offset,
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(40.0),
          end: _measuredMetrics.measureWidth(40.0),
          top: _measuredMetrics.statusBarHeight(50.0),
          bottom: 0.0), // appBarMargin
      (_measuredMetrics.measureHeight(88.0) +
          _measuredMetrics.statusBarHeight(50.0)), // appBarHeight
      _measuredMetrics.measureHeight(48.0, consistent: false), // closeIconSize
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: true), // restoreFontSize
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(32.0),
          end: _measuredMetrics.measureWidth(32.0),
          top: _measuredMetrics.measureHeight(24.0, consistent: true),
          bottom: _measuredMetrics.navigationBarHeight(30)), // bottomCardsTopSpacing
      _measuredMetrics.measureHeight(48, consistent: true),
      Size(_measuredMetrics.measureWidth(630), _measuredMetrics.measureHeight(104, consistent: true)),
      EdgeInsetsDirectional.only(
          start: 0.0,
          end: 0.0,
          top: _measuredMetrics.measureHeight(28.0),
          bottom: _measuredMetrics.measureHeight(32.0)), // policyPadding
      _measuredMetrics.measureAbsoluteFontSize(20.0,
          consistent: false), // policyFontSize
      SubscriptionMainCardDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(242.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(320.0, consistent: false)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      SubscriptionEdgeCardDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(206.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(268.0, consistent: false)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      SubscriptionListCardDesignSpec.create(
          Size(
              _measuredMetrics
                  .measureWidth(650.0, consistent: false)
                  .clamp(0.0, 4294967295.0),
              _measuredMetrics
                  .measureHeight(124.0, consistent: false)
                  .clamp(0.0, 4294967295.0)),
          offset: offset),
      _measuredMetrics.measureHeight(22.0, consistent: false)
    );
  }

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