// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'bundle_card.dart';

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

class _BundleCardDesignSpec extends BundleCardDesignSpec {
  _BundleCardDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.bundleCardPadding,
    this.bundleInfoPadding,
    this.bundleLabelTopSpcing,
    this.bundleLabelRightSpcing,
    this.bundleLabelSize,
    this.bundleTitleFontsize,
    this.bundleSummaryFontsize,
    this.bundleTitleBottomSpcing,
    this.bundleButtonSize,
  );

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

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

  @override
  final EdgeInsets bundleCardPadding;

  @override
  final EdgeInsets bundleInfoPadding;

  @override
  final double bundleLabelTopSpcing;

  @override
  final double bundleLabelRightSpcing;

  @override
  final double bundleLabelSize;

  @override
  final double bundleTitleFontsize;

  @override
  final double bundleSummaryFontsize;

  @override
  final double bundleTitleBottomSpcing;

  @override
  final Size bundleButtonSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _BundleCardDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _BundleCardDesignSpec._(
      _measuredMetrics, offset,
      EdgeInsets.only(
          left: _measuredMetrics.measureWidth(12.0),
          right: _measuredMetrics.measureWidth(12.0),
          top: _measuredMetrics.measureHeight(12.0),
          bottom: _measuredMetrics.measureHeight(18.0)),
      EdgeInsets.only(
          left: _measuredMetrics.measureWidth(24.0),
          right: _measuredMetrics.measureWidth(24.0),
          top: _measuredMetrics.measureHeight(18.0),
          bottom: 0.0),
      _measuredMetrics.measureHeight(-56.0,
          consistent: false), // bundleLabelTopSpcing
      _measuredMetrics.measureHeight(-40.0,
          consistent: false), // bundleLabelRightSpcing
      _measuredMetrics.measureHeight(136.0,
          consistent: false), // bundleLabelSize
      _measuredMetrics.measureAbsoluteFontSize(32.0,
          consistent: false), // bundleTitleFontsize
      _measuredMetrics.measureAbsoluteFontSize(20.0,
          consistent: false), // bundleSummaryFontsize
      _measuredMetrics.measureHeight(8.0,
          consistent: false), // bundleTitleBottomSpcing
      Size(_measuredMetrics.measureWidth(200.0),
          _measuredMetrics.measureHeight(80.0)), // bundleButtonSize
    );
  }

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